python爬虫的时候得不到完整的html代码

2018-08-14 更新

1、尝试加入headers 试一下

head={'User-Agent':'Mozilla/5.0'}

reponse=requests.get('https://www.toutiao.com/a6589349102004208136/#p=4',headers=head

猜你喜欢

转载自blog.csdn.net/weixin_42066185/article/details/81675726