Web Scraping
文章平均质量分 76
尧尧1988
这个作者很懒,什么都没留下…
展开
-
Requset 学习笔记
1.request.raise_for_status()This is a new function to add to our existing toolbox of ways to check the status of a request. When you call the function r.raise_for_status(), Requests will check the s...原创 2018-10-05 01:20:29 · 208 阅读 · 0 评论 -
Python网络数据采集读书笔记
1.网络爬虫 • 通过网站域名获取 HTML 数据 • 根据目标信息解析数据 • 存储目标信息 • 如果有必要,移动到另一个网页重复这个过程2.每当你调用 BeautifulSoup 对象里的一个标签时,增加一个检查条件保证标签确实存在是很聪明的做法。3.在写爬虫的时候,思考代码的总体格局,让代码既可以捕捉异常又容易阅读,这是很重要的。如果你还希望能够很大程度地重...原创 2018-10-05 08:49:02 · 277 阅读 · 1 评论