使用requests.get发送请求给百度,报错,请问是什么原因,百度不让爬数据吗?
urllib3.exceptions.LocationParseError: Failed to parse: https:www.baidu.com
代码如下:
import requests
response = requests.get('https://www.baidu.com')
print(response.text[:250])
urllib3.exceptions.LocationParseError: Failed to parse: https:www.baidu.com
代码如下:
import requests
response = requests.get('https://www.baidu.com')
print(response.text[:250])
2019-05-13
举报