用requests库的get( )函数访问搜狗网站20次
摘要:
代码: import requests from bs4 import BeautifulSoup def getHTMLText(url): try: r=requests.get(url,timeout=30) soup=BeautifulSoup(r.text) r.raise_for_sta 阅读全文
posted @ 2020-05-13 15:53 EndymionYoo 阅读(560) 评论(0) 推荐(0) 编辑