
爬虫
JadenNeal
这个作者很懒,什么都没留下…
展开
-
使用BeautifulSoup爬虫
爬虫刚入门,用BeautifulSoup来练手。本篇文章前提是安装好了BeautifulSoup、requests模块,还需要内置的os模块。爬取的网址为:http://www.itcast.cn/channel/teacher.shtml#ajavaee 首先,载入模块 import requestsfrom bs4 import BeautifulSoupimport ...原创 2018-12-25 17:04:40 · 4348 阅读 · 0 评论 -
爬虫实例之爬取北京地铁站点
目标网站:https://www.bjsubway.com/station/zjgls/#使用模块:re、os、requests、BeautifulSoup老样子,直接步入正题。先看下结果:北京地铁各站点间距离一览 载入模块 import requestsfrom bs4 import BeautifulSoupi...原创 2018-12-25 22:02:43 · 3792 阅读 · 2 评论