scraping
qq_38904449
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
scraping-day0
基于web scraping with python的学习笔记 代码示例,练习:https://github.com/REMitchell/python-scraping原创 2018-07-18 09:14:07 · 125 阅读 · 0 评论 -
scraping-day1
简单请求: from urllib.request import urlopen html = urlopen("http://pythonscraping.com/pages/page1.html") print(html) print(html.read()) 使用BeautifulSoup解析: from urllib.request import urlopen from b...原创 2018-07-18 11:16:17 · 135 阅读 · 0 评论 -
scraping-day2 遍历多个页面
遍历单个域名 获取一个页面的所有链接 from urllib.request import urlopen from bs4 import BeautifulSoup html = urlopen("http://en.wikipedia.org/wiki/Kevin_Bacon") bs_obj = BeautifulSoup(html, "html.parser") for link i...原创 2018-07-19 08:56:29 · 184 阅读 · 0 评论
分享