Python菜鸟爬虫
# coding:GB2312
import requests
resp = requests.get('https://www.zhzyw.com/zycs/zcy/zl/177101719GFBHG5121AB0G0A.html')
resp.encoding = 'gb2312'
print(resp.text)
# print(resp.status_code)
# print(resp.apparent_encoding)
# coding:GB2312
import requests
resp = requests.get('https://www.zhzyw.com/zycs/zcy/zl/177101719GFBHG5121AB0G0A.html')
resp.encoding = 'gb2312'
print(resp.text)
# print(resp.status_code)
# print(resp.apparent_encoding)
本文标题:python爬虫之简单的网页获取
本文链接:https://www.haomeiwen.com/subject/plqilftx.html
网友评论