def getHTMLText(url,code="ascii"):
try:
ua=UserAgent()
headers1={'User-Agent': 'ua.random'} # Use random header to imitate human behaviour
r = requests.get(url,headers=headers1)
r.raise_for_status()
r.encoding = code
return r.text
except:
return "getHTML error"
USC_quant_class_2017fall.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录