摘要: #所需模块 requests 、Beautifulsoup、urllib 1. response = requests.get('www.baidu.com') #获取网站响应 2.html = response.text #获取网页内容 3.soup = Beautifulsoup(html,'h 阅读全文