随笔分类 -  网络爬虫

网络爬虫的一些知识。
网络爬虫第一步:通用代码框架(python版)
摘要:import requests def getHTMLText(url): try: r=requests.get(url,timeout=30) r.raise_for_status() r.encoding=r.apparent_encoding return r.text except: re 阅读全文
posted @ 2020-07-07 18:10 Beyond2019 阅读(71) 评论(0) 推荐(0)