摘要: 安装: Win平台: “以管理员身份运行”cmd 执行 pip install beautifulsoup4 Beautiful Soup 库的理解: Beautiful Soup 库解析器: Beautiful Soup 库的基本元素: 基于bs4库的HTML内容遍历方法: 下行遍历: soup 阅读全文
posted @ 2019-08-03 19:41 RomanticChopin 阅读(1865) 评论(0) 推荐(1) 编辑
摘要: 安装: Win 平台:“以管理员身份运行” cmd,执行 pip install requests 小测: >>>import requests >>>r=requests.get("http://www.baidu.com") >>>print(r.status_code) 200 >>>r.te 阅读全文
posted @ 2019-08-03 17:08 RomanticChopin 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 爬取这个网页:软科中国最好大学排名2019 #采用bs4--Beautiful库实现 import requests from bs4 import BeautifulSoup import bs4 #得到网页内容 def getHTMLText(url): try: r = requests.ge 阅读全文
posted @ 2019-08-03 16:21 RomanticChopin 阅读(373) 评论(0) 推荐(0) 编辑
-->
Live2D