资源简介
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制作简易软件系统
相关资源
- python+ selenium教程
- 英文原版-Scientific Computing with Python
- CpuMemSets在Linux操作系统中的实现
- Python学习全系列教程永久可用
- 蓝奏云批量上传工具.zip
- python书籍 PDF
- 老男孩python项目实战
- Python.rar99111
- decision_tree_v2.py
- Python绝技运用Python成为顶级黑客.pdf
- python小波包文档及论文.zip
- Python黑帽子(黑客与渗透测试编程之
- FlaskWeb开发:基于Python的Web应用开发实
- Python基础教程第3版中英文源码.rar
- python数据结构与算法中文版.zip
- Python-冲顶大会芝士超人西瓜视频头脑
- time_series_forecasting_with_python.zip
- Python基础教程第三版PDF高清可复制.
- python编程从入门到实践.zip237878
- FlaskWeb开发:Python基于Web应用开发实战
- pythonBCRMDSJ.mobi
- 量化交易之路用Python做股票量化分析
- PYTHON自然语言处理中文版.pdf
- Python基础教程(第3版).rar
- GRAYHATPYTHON高清.英文.书签版.pdf
- Python简明教程第四版.rar
- Python编程:从入门到实践带书签完整
- Python基础教程(第3版).pdf109608
- vamei-从Python开始学编程.pdf
- 利用Python进行数据分析.pdf
评论
共有 条评论