问答详情
源自:-

使用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])

提问者:weixin_慕无忌9076501 2019-05-13 21:26

个回答

  • weixin_慕的地8358987
    2019-11-24 14:33:56

    一点都不伪装的吗