摘要: import json import re import requests from requests.exceptions import RequestException import time # 获取html def get_one_page(url): try: headers={ 'Use 阅读全文
posted @ 2021-07-25 20:49 未名w 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 3 基本库的使用 1)使用 urllib 是python内置的HTTP请求库,包含request、error、parse、robotparser urlopen() urllib.request.urlopen(url, data=None, [timeout, ]*, cafile=None, c 阅读全文
posted @ 2021-07-25 20:46 未名w 阅读(324) 评论(0) 推荐(0) 编辑