python爬虫之简单的网页获取
2018-04-27 本文已影响0人
Gordon_Gore
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)