资源简介
51Job.py
代码片段和文件信息
#先导入爬取数据所需的库
import urllib.request as ur#用于网页数据获取
import re#正则匹配网页数据中所需的数据
import xlwt#将获取的数据保存为excel文件
def get_content(page):#获取源码
url = ‘http://search.51job.com/list/000000000000000000999%25E6%2599%25BA%25E8%2583%25BD2‘+ str(page)+‘.html‘#智能
url2 = ‘http://search.51job.com/list/070000000000000000999%25E6%2599%25BA%25E8%2583%25BD2‘+str(page)+‘.html?lang=c&stype=&postchannel=0000&workyear=99&cotype=99°reefrom=99&jobterm=99&companysize=99&providesalary=99&lonlat=0%2C0&radius=-1&ord_field=0&confirmdate=9&fromType=&dibiaoid=0&address=&line=&specialarea=00&from=&welfare=‘
url3 = ‘http://search.51job.com/list/010000%252C020000%252C030200%252C040000000000000000999%25E6%2599%25BA%25E8%2583%25BD2‘+str(page)+‘.html?lang=c&stype=1&postchannel=0000&workyear=99&cotype=99°reefrom=99&jobterm=99&companysize=99&lonlat=0%2C0&radius=-1&ord_field=0&confirmdate=9&fromType=1&dibiaoid=0&address=&line=&specialarea=00&from=&welfare=‘
url4 = ‘http://search.51job.com/list/030000000000000000999%25E6%2599%25BA%25E8%2583%25BD2‘+str(page)+‘.html?lang=c&stype=1&postchannel=0000&workyear=99&cotype=99°reefrom=99&jobterm=99&companysize=99&lonlat=0%2C0&radius=-1&ord_field=0&confirmdate=9&fromType=1&dibiaoid=0&address=&line=&specialarea=00&from=&welfare=‘
url5 = ‘http://search.51job.com/list/030000%252C130000%252C150000%252C160000%252C170000000000000000999%25E6%2599%25BA%25E8%2583%25BD2‘+str(page)+‘.html?lang=c&stype=1&postchannel=0000&workyear=99&cotype=99°reefrom=99&jobterm=99&companysize=99&lonlat=0%2C0&radius=-1&ord_field=0&confirmdate=9&fromType=1&dibiaoid=0&address=&line=&specialarea=00&from=&welfare=‘
# url6 = ‘http://search.51job.com/list/200000%252C210000%252C220000%252C230000%252C240000000000000000999%2
- 上一篇:四六级准考证号遍历查询
- 下一篇:数字图像处理Python制作简易软件系统
相关资源
- python3网络爬虫与开发实战崔庆才PDF百
- python300G视频书籍教程.zip
- 5652华尔街见闻.py
- hulk.py
- 麦子学院Python视频.txt
- python核心基础.txt
- 仿真3D版本.py
- Python零基础10天进阶班.rar
- 用Python自动办公,做职场高手.txt
- 基于python实现的http接口自动化测试框
- spider_LOL.py
- Python教程.rar
- 小甲鱼零基础入门学习Python视频教程
- 麦子学院Python全套视频.txt
- 《疯狂Python讲义》习题答案.rar
- publishHelper.py
- sendInfo.py
- Python零基础10天进阶班.docx
- Python数据科学指南_Code.zip
- 爬取URP教务网站学籍信息.py
- Anaconda历史版本Python3.6版本.zip
- car_detected.py
- Python-图像分割Keras在Keras中实现Segne
评论
共有 条评论