![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
scraping
qq_38904449
这个作者很懒,什么都没留下…
展开
-
scraping-day0
基于web scraping with python的学习笔记代码示例,练习:https://github.com/REMitchell/python-scraping原创 2018-07-18 09:14:07 · 85 阅读 · 0 评论 -
scraping-day1
简单请求:from urllib.request import urlopenhtml = urlopen("http://pythonscraping.com/pages/page1.html")print(html)print(html.read())使用BeautifulSoup解析:from urllib.request import urlopenfrom b...原创 2018-07-18 11:16:17 · 102 阅读 · 0 评论 -
scraping-day2 遍历多个页面
遍历单个域名获取一个页面的所有链接from urllib.request import urlopenfrom bs4 import BeautifulSouphtml = urlopen("http://en.wikipedia.org/wiki/Kevin_Bacon")bs_obj = BeautifulSoup(html, "html.parser")for link i...原创 2018-07-19 08:56:29 · 130 阅读 · 0 评论