import requestsfrom bs4 import BeautifulSoupimport reuser_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3521.2 Safari/537.36'headers = {'User-Agent':user_agent}url = 'http://bxjg.bis.gov.cn//web/s...'session = requests.session()session.headers = headersrequests.adapters.DEFAULT_RETRIES = 50session.keep_alive = Falser = session.get(url)执行上面代码出现错误:在网上查了很多方法也不管用,求教大神
1 回答
- 1 回答
- 0 关注
- 493 浏览
添加回答
举报
0/150
提交
取消