LoginSignup
0
0

More than 3 years have passed since last update.

スクレイピングの基礎

Posted at

スクレイピング

1.基本

import request
# サードパーティライブラリのため注意

url = "https://docs.pyq.jp/_static/assets/scraping/test1.html"

response = requests.get(url)
response.encoding = response.apparent_encoding

print(response.text)

2.時間をあける

import time
time.sleep(1) #1秒まつ
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0