摘要:
```py import requests from urllib.request import urlretrieve from lxml import etree headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78 阅读全文
posted @ 2019-11-23 10:58
天际之鹰
阅读(757)
评论(0)
推荐(0)
摘要:
```py # conding:utf8 import requests import re import time if __name__ == "__main__": # 所有的数据 url = 'http://www.win4000.com/zt/qsmy.html' response = requests.get(url) # with open('./qsmy.html', mode=' 阅读全文
posted @ 2019-11-23 10:55
天际之鹰
阅读(718)
评论(0)
推荐(0)
摘要:
```pyimport osos.makedirs('./image/', exist_ok=True)IMAGE_URL = "http://image.nationalgeographic.com.cn/2017/1122/20171122113404332.jpg" def urllib_download(): from urllib.request import urlretriev... 阅读全文
posted @ 2019-11-23 10:52
天际之鹰
阅读(1514)
评论(0)
推荐(0)
浙公网安备 33010602011771号