话不多说直接上代码:
爬B站:
import requests
url="https://www.bilibili.com/"
req=requests.get(url)
req.encoding='utf-8'
print(req.text)
爬tool站:
import requests
url='http://www.atoolbox.net/'
r=requests.get(url=url)
r.encoding='utf-8'
print(r.text)
话不多说直接上代码:
爬B站:
import requests
url="https://www.bilibili.com/"
req=requests.get(url)
req.encoding='utf-8'
print(req.text)
爬tool站:
import requests
url='http://www.atoolbox.net/'
r=requests.get(url=url)
r.encoding='utf-8'
print(r.text)