import requests
keyword = 'Python'
url = 'http://www.so.com/s'
try:
kv = {'q':keyword}
r = requests.get(url,parama=kv)
r.raise_for_status()
print(len(r.text))
except:
print('爬取失败')
requests笔记3---百度360搜索关键词提交
最新推荐文章于 2023-10-29 20:20:14 发布