一个最简单的爬虫-HTML下载器

xiaoxiao2021-02-28  9

#HTML下载器 import urllib from urllib import request class HtmlDownloader(object): def download(self, url): if url is None: return None res = urllib.request.urlopen(url) if res.getcode() != 200: return None return res.read()
转载请注明原文地址: https://www.6miu.com/read-2400264.html

最新回复(0)