- 博客(12)
- 收藏
- 关注
原创 python爬虫——爬取拉勾上的职位信息
爬取拉勾网站岗位数据1、调用网页查找网页链接规律写一个for循环,爬取每一个网页的职位信息def down(): for i in range(1,4): if i == 1: strUrl = "http://72.itmc.org.cn/JS001/open/show/zhaopin/index.html" else: strUrl ="http://72.itmc.org.cn/JS001/open/sh
2021-05-22 12:09:57
1044
2
原创 python爬虫——正则获取手机号
用正则匹配网页手机号安装re模块、requests库、beautifulsoup4库cmd → pip install re → 回车cmd → pip install requests → 回车cmd → pip install beautifulsoup4 → 回车调用import requestsimport refrom bs4 import BeautifulSoup调用网址r = requests.get(“http://www.haomahao.com/”)编写正则表达
2021-05-22 11:30:39
4979
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人