嗨喽,大家好呀~这里是爱看美女的茜茜呐
Python 3.8
Pycharm
python源码、视频教程、插件安装教程、资料我都准备好了,直接在文末名片自取就可
requests —> pip install requests
execjs -> pip install pyexecjs
csv
第三方模块安装
win + R 输入cmd 输入安装命令 pip install 模块名 (如果你觉得安装速度比较慢, 你可以切换国内镜像源)
一. 数据来源分析
明确需求: 明确采集的网站以及数据内容
网址: https://www.kanzhun.com/rank_f/
数据: 公司数据内容
抓包分析 -> 通过浏览器自带开发者工具进行抓包 <从第二页数据内容开始分析>
- 打开开发者工具: F12
- 刷新网页
- 通过关键字去搜索对应数据包
https://www.kanzhun.com/rank_f/ <静态网页>
- https://www.kanzhun.com/api_to/channel/company/list.json
参数:
- b
- kiv
响应数据:
加密内容
普通网站数据采集 --> 参数变化 去搜索参数在什么地方
比如视频ID 图片ID…
既然参数数据/数据加密 --> 分析参数如何生成的
加密参数都是 js代码中生成
二. 代码实现步骤
发送请求
获取数据
解析数据
保存数据
import pprint
import re
import execjs
import requests
import json
import csv
'''
学习中遇到问题没人解答?小编创建了一个Python学习交流QQ群:261823976
寻找有志同道合的小伙伴,互帮互助,群里还有不错的视频学习教程和PDF电子书!
'''
csv_file = open('data.csv', mode='w', encoding='utf-8', newline='')
csv_writer = csv.DictWriter(csv_file, fieldnames=[
'名称',
'城市',
'领域',
'规模',
'法人',
'成立时间',
'注册资本',
'面试经验',
'工资爆料',
'企业风险',
'企业产品',
])
csv_writer.writeheader()
# 读取js代码文件
f = open('demo.js', 'r', encoding='utf-8').read()
# 编译js文件
js_code = execjs.compile(f)
# 调用js代码里面的函数内容 -> 获取kiv值
kiv = js_code.call('M_A', 16)
# 获取b值
info = '{"cityCode":"","industryCode":"","curPage":2}'
t = {
"iv": kiv
}
b = js_code.call('M_mA', info, t)
print(kiv)
print(b)
# 请求链接
url = f'https://www.kanzhun.com/api_to/channel/company/list.json?b={b}&kiv={kiv}'
# 模拟浏览器
headers = {
'Href': 'https://www.kanzhun.com/rank_f/',
'Referer': 'https://www.kanzhun.com/rank_f/',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36',
}
# 发送请求
# response = requests.get(url=url, headers=headers).text
# print(response)
# result = js_code.call('Hash', response, kiv)
result = '{"resdata":{"channelFilterVO":{"channelCityFilterVOList":[{"code":101250100,"name":"长沙"},{"code":101010100,"name":"北京"},{"code":101020100,"name":"上海"},{"code":101280100,"name":"广州"},{"code":101280600,"name":"深圳"},{"code":101210100,"name":"杭州"},{"code":101030100,"name":"天津"},{"code":101110100,"name":"西安"},{"code":101190400,"name":"苏州"},{"code":101200100,"name":"武汉"},{"code":101270100,"name":"成都"},{"code":101180100,"name":"郑州"},{"code":101230200,"name":"厦门"},{"code":101190100,"name":"南京"},{"code":101040100,"name":"重庆"},{"code":101070100,"name":"沈阳"},{"code":101070200,"name":"大连"},{"code":101050100,"name":"哈尔滨"},{"code":101120100,"name":"济南"},{"code":101120200,"name":"青岛"}],"channelIndustryVOFilterVOList":[{"code":100904,"name":"印刷/包装/造纸"},{"code":100024,"name":"通信/网络设备"},{"code":100701,"name":"房地产开发"},{"code":101007,"name":"工艺品/收藏品"},{"code":100707,"name":"物业服务"},{"code":101102,"name":"酒店"},{"code":101204,"name":"采掘/冶炼"},{"code":100001,"name":"电子商务"},{"code":100803,"name":"4S店/后市场"},{"code":100601,"name":"咨询"},{"code":100003,"name":"媒体"},{"code":100025,"name":"运营商/增值服务"},{"code":100402,"name":"医疗/护理/卫生"},{"code":100203,"name":"证券/期货"},{"code":101002,"name":"日化"},{"code":101003,"name":"服装/纺织/皮革"},{"code":101201,"name":"石油/石化"},{"code":100608,"name":"其他专业服务"},{"code":101105,"name":"婚庆/摄影"},{"code":100101,"name":"广告/公关/会展"},{"code":100802,"name":"汽车零部件"},{"code":100207,"name":"投资/融资"},{"code":100801,"name":"汽车生产"},{"code":100905,"name":"船舶/航空/航天"},{"code":100504,"name":"贸易/进出口"},{"code":100202,"name":"保险"},{"code":101008,"name":"办公用品及设备"},{"code":101203,"name":"矿产/地质"},{"code":100605,"name":"财务/审计/税务"},{"code":100020,"name":"互联网"},{"code":100301,"name":"学前教育"},{"code":100206,"name":"互联网金融"},{"code":100104,"name":"文化/体育/娱乐"},{"code":101106,"name":"其他服务业"},{"code":101202,"name":"化工"},{"code":100008,"name":"O2O"},{"code":100009,"name":"旅游"},{"code":100502,"name":"物流/仓储"},{"code":100702,"name":"工程施工"},{"code":101304,"name":"其他行业"},{"code":100010,"name":"分类信息"},{"code":100304,"name":"学术/科研"},{"code":100705,"name":"建材"},{"code":100004,"name":"广告营销"},{"code":100303,"name":"培训机构"},{"code":100205,"name":"信托"},{"code":100102,"name":"新闻/出版"},{"code":100007,"name":"生活服务"},{"code":101301,"name":"政府/公共事业"},{"code":100021,"name":"计算机软件"},{"code":100602,"name":"法律"},{"code":101006,"name":"珠宝/首饰"},{"code":100401,"name":"制药"},{"code":101101,"name":"餐饮"},{"code":100902,"name":"仪器仪表/工业自动化"},{"code":100204,"name":"基金"},{"code":101206,"name":"新能源"},{"code":100002,"name":"游戏"},{"code":101303,"name":"农/林/牧/渔"},{"code":100603,"name":"翻译"},{"code":100023,"name":"计算机服务"},{"code":101001,"name":"食品/饮料/烟酒"},{"code":100403,"name":"医疗设备/器械"},{"code":100016,"name":"信息安全"},{"code":100022,"name":"计算机硬件"},{"code":101004,"name":"家具/家电/家居"},{"code":100103,"name":"广播/影视"},{"code":100201,"name":"银行"},{"code":100302,"name":"院校"},{"code":100011,"name":"音乐/视频/阅读"},{"code":100017,"name":"新零售"},{"code":101104,"name":"美容/美发"},{"code":100607,"name":"专利/商标/知识产权"},{"code":100006,"name":"医疗健康"},{"code":100503,"name":"批发/零售"},{"code":101005,"name":"玩具/礼品"},{"code":100013,"name":"社交网络"},{"code":100208,"name":"租赁/拍卖/典当/担保"},{"code":100015,"name":"企业服务"},{"code":100026,"name":"电子/半导体/集成电路"},{"code":100019,"name":"移动互联网"},{"code":100703,"name":"建筑设计"},{"code":100901,"name":"机械设备/机电/重工"},{"code":100903,"name":"原材料及加工/模具"},{"code":100606,"name":"检测/认证"},{"code":100012,"name":"在线教育"},{"code":100501,"name":"交通/运输"},{"code":100005,"name":"数据服务"},{"code":101205,"name":"电力/热力/燃气/水利"},{"code":101207,"name":"环保"},{"code":100704,"name":"装修装饰"},{"code":100706,"name":"地产经纪/中介"},{"code":100014,"name":"人力资源服务"},{"code":100018,"name":"智能硬件"},{"code":101302,"name":"非盈利机构"}],"channelSalaryFilterVOList":null,"channelExperienceFilterVOList":null,"channelEstablishYearsFilterVOList":[{"code":101,"name":"1年以内"},{"code":102,"name":"1-2年"},{"code":103,"name":"2-3年"},{"code":104,"name":"3-5年"},{"code":105,"name":"5-10年"},{"code":106,"name":"10年以上"}],"channelRegisterCapitalsFilterVOList":[{"code":201,"name":"100万以内"},{"code":202,"name":"100万到200万"},{"code":203,"name":"200万到500万"},{"code":204,"name":"500万到1000万"},{"code":205,"name":"1000万到5000万"},{"code":206,"name":"5000万以上"}],"curScaleId":0,"curCityCode":0,"curIndustryCode":0,"curSalaryId":0,"curExperienceId":0,"curEstablishYearsId":0,"curRegisterCapitalsId":0,"curScaleName":null,"curCityName":null,"curIndustryName":null,"curSalaryName":null,"curExperienceName":null,"curEstablishYearsName":null,"curRegisterCapitalsName":null},"channelCompanyVOList":[{"encCompanyId":"1HV-3Q~~","bossCompanyUrl":null,"balaCount":"1.4k","interviewCount":"4.1k","salaryCount":"7.9w","jobCount":"0","recruitCount":"45","riskCount":"75","legal":"丁磊","registFinance":"13760万美元","registTime":"2006-06-02","logo":"https://img.kanzhun.com/images/logo/20211204/e50c58323201c35613e2c22364f41720.jpg","status":1,"statusStr":"存续","legalRegistFinanceAndTime":"法定代表人:丁磊 注册资本:13760万美元 成立日期:2006-06-02","recDependence":"最近 3 个月新增岗位3500多个","recType":1,"companyName":"网易(杭州)网络有限公司","basicDesc":"杭州市 · 移动互联网 · 1000-9999人","profileLabel":["杭州市","移动互联网","成立17年","火热招聘"],"profileLabelStr":"杭州市 移动互联网 成立17年 火热招聘","companyTag":["A级纳税人","瞪羚企业","国家级企业技术中心"],"highlightsName":[],"highlightPositionsName":[],"legalKgId":"","groupName":"","groupType":0,"reasonType":6,"reason":"","highlightsReason":[],"highlightPositionsReason":[],"riskDes":"低风险","comStrengDesc":"实力雄厚","financeTagVO":null,"projectList":["网易美学","UU加速器","网易公开课","LOFTER","Gacha","荒野行动","网易云阅读","网易100分","网易好邻好课","网易红彩"],"productList":null,"bannerList":[{"bannerName":"瞪羚企业","bannerType":"2805","companyNum":0,"industryNum":0,"photoUrl":null,"webDesc":null,"companyCardVOS":null,"desc":"0家企业,覆盖0个行业"},{"bannerName":"国家级企业技术中心","bannerType":"2811","companyNum":0,"industryNum":0,"photoUrl":null,"webDesc":null,"companyCardVOS":null,"desc":"0家企业,覆盖0个行业"}],"breakType":3},{"encCompanyId":"1nJ72NS8EA~~","bossCompanyUrl":null,"balaCount":"421","interviewCount":"1.3k","salaryCount":"1.2w","jobCount":"0","recruitCount":"50","riskCount":"119","legal":"冯星星","registFinance":"20000万美元","registTime":"2008-05-08","logo":"https://img.kanzhun.com/images/logo/20211128/5e4ce0ae19eecd7b1f24a20505c2066a.jpg","status":1,"statusStr":"存续","legalRegistFinanceAndTime":"法定代表人:冯星星 注册资本:20000万美元 成立日期:2008-05-08","recDependence":"最近 3 个月新增岗位500多个","recType":1,"companyName":"北京世纪好未来教育科技有限公司","basicDesc":"北京市 · 互联网 · 1000-9999人","profileLabel":["北京市","互联网","成立15年","火热招聘"],"profileLabelStr":"北京市 互联网 成立15年 火热招聘","companyTag":["A级纳税人","高新技术企业","瞪羚企业"],"highlightsName":[],"highlightPositionsName":[],"legalKgId":"","groupName":"","groupType":0,"reasonType":6,"reason":"","highlightsReason":[],"highlightPositionsReason":[],"riskDes":"低风险","comStrengDesc":"实力雄厚","financeTagVO":{"amount":"33亿美元","round":"定向增发","src":"http://www.techweb.com.cn/finance/2020-12-29/2818507.shtml","srcDesc":"新闻资讯","fdate":"2020-12-29"},"projectList":["好未来","ABCtime"],"productList":["国学培训","民办培训","托管班","在线教育","培训学校"],"bannerList":[{"bannerName":"高新技术企业","bannerType":"2801","companyNum":0,"industryNum":0,"photoUrl":null,"webDesc":null,"companyCardVOS":null,"desc":"0家企业,覆盖0个行业"},{"bannerName":"瞪羚企业","bannerType":"2805","companyNum":0,"industryNum":0,"photoUrl":null,"webDesc":null,"companyCardVOS":null,"desc":"0家企业,覆盖0个行业"}],"breakType":3},{"encCompanyId":"1HV_2Q~~","bossCompanyUrl":null,"balaCount":"2.3k","interviewCount":"4.2k","salaryCount":"2.7w","jobCount":"0","recruitCount":"121","riskCount":"3","legal":"李军旗","registFinance":"1987210.2687万人民币","registTime":"2015-03-06","logo":"https://img.kanzhun.com/images/logo/20211127/cfce2e6031733f552aa4f70bedce6450.jpg","status":1,"statusStr":"存续","legalRegistFinanceAndTime":"法定代表人:李军旗 注册资本:1987210.2687万人民币 成立日期:2015-03-06","recDependence":"最近 3 个月新增岗位150多个","recType":1,"companyName":"富士康工业互联网股份有限公司","basicDesc":"深圳市 · 互联网 · 10000人以上","profileLabel":["深圳市","互联网","成立8年","火热招聘"],"profileLabelStr":"深圳市 互联网 成立8年 火热招聘","companyTag":["小微企业"],"highlightsName":[],"highlightPositionsName":[],"legalKgId":"","groupName":"","groupType":0,"reasonType":6,"reason":"","highlightsReason":[],"highlightPositionsReason":[],"riskDes":"低风险","comStrengDesc":"实力雄厚","financeTagVO":{"amount":"未披露","round":"定向增发","src":"-","srcDesc":"新闻资讯","fdate":"2019-06-30"},"projectList":null,"productList":["工业自动化"],"bannerList":[],"breakType":3},{"encCompanyId":"0HF93g~~","bossCompanyUrl":null,"balaCount":"953","interviewCount":"3.4k","salaryCount":"3.8w","jobCount":"0","recruitCount":"1.2k","riskCount":"126","legal":"李佳","registFinance":"15000万","registTime":"2013-07-25","logo":"https://img.kanzhun.com/images/logo/20211130/3638e6b0c7e8e89dd47e32ffa51df6d1.jpg","status":1,"statusStr":"存续","legalRegistFinanceAndTime":"法定代表人:李佳 注册资本:15000万 成立日期:2013-07-25","recDependence":"最近 3 个月新增岗位1500多个","recType":1,"companyName":"顺丰速运有限公司","basicDesc":"深圳市 · 物流/仓储 · 1000-9999人","profileLabel":["深圳市","物流/仓储","成立10年","火热招聘"],"profileLabelStr":"深圳市 物流/仓储 成立10年 火热招聘","companyTag":["A级纳税人","小微企业"],"highlightsName":[],"highlightPositionsName":[],"legalKgId":"","groupName":"","groupType":0,"reasonType":6,"reason":"","highlightsReason":[],"highlightPositionsReason":[],"riskDes":"低风险","comStrengDesc":"实力雄厚","financeTagVO":null,"projectList":null,"productList":null,"bannerList":[],"breakType":3},{"encCompanyId":"1nZ439y8EA~~","bossCompanyUrl":null,"balaCount":"558","interviewCount":"2.7k","salaryCount":"1.5w","jobCount":"0","recruitCount":"284","riskCount":"46","legal":"冯星星","registFinance":"5000万人民币","registTime":"2005-12-31","logo":"https://img.kanzhun.com/images/logo/20211129/c9807368145a7bf10a9057d9beda9f81.jpg","status":1,"statusStr":"存续","legalRegistFinanceAndTime":"法定代表人:冯星星 注册资本:5000万人民币 成立日期:2005-12-31","recDependence":"最近 3 个月新增岗位70多个","recType":1,"companyName":"北京学而思教育科技有限公司","basicDesc":"北京市 · 互联网 · 1000-9999人","profileLabel":["北京市","互联网","成立18年","正在招聘"],"profileLabelStr":"北京市 互联网 成立18年 正在招聘","companyTag":["A级纳税人"],"highlightsName":[],"highlightPositionsName":[],"legalKgId":"","groupName":"","groupType":0,"reasonType":6,"reason":"","highlightsReason":[],"highlightPositionsReason":[],"riskDes":"低风险","comStrengDesc":"实力雄厚","financeTagVO":{"amount":"未披露","round":"并购","src":"-","srcDesc":"新闻资讯","fdate":"2014-04-30"},"projectList":["学而思","题拍拍","小猴启蒙","学而思网校","摩比思维","英语网","小木虫","乐外教"],"productList":["教辅","教育APP","在线教育","少儿编程","培训学校"],"bannerList":[],"breakType":3},{"encCompanyId":"0nF-3t8~","bossCompanyUrl":null,"balaCount":"1.2k","interviewCount":"4.4k","salaryCount":"3.0w","jobCount":"0","recruitCount":"195","riskCount":"45","legal":"陈宗年","registFinance":"933060.0931万人民币","registTime":"2001-11-30","logo":"https://img.kanzhun.com/images/logo/20211129/47efa844bfac29fd83b0895d7d1877d5.jpg","status":1,"statusStr":"存续","legalRegistFinanceAndTime":"法定代表人:陈宗年 注册资本:933060.0931万人民币 成立日期:2001-11-30","recDependence":"最近 3 个月新增岗位1000多个","recType":1,"companyName":"杭州海康威视数字技术股份有限公司","basicDesc":"杭州市 · 计算机软件 · 10000人以上","profileLabel":["杭州市","计算机软件","成立22年","火热招聘"],"profileLabelStr":"杭州市 计算机软件 成立22年 火热招聘","companyTag":["A级纳税人","高新技术企业","瞪羚企业","国家级技术创新示范企业"],"highlightsName":[],"highlightPositionsName":[],"legalKgId":"","groupName":"","groupType":0,"reasonType":6,"reason":"","highlightsReason":[],"highlightPositionsReason":[],"riskDes":"低风险","comStrengDesc":"实力雄厚","financeTagVO":null,"projectList":null,"productList":["安防监控","报警器","IT软件","后视镜","指纹锁","会议平板","安防系统","楼宇对讲","条码扫描器","sd卡","智能开关","智能猫眼","光端机","监控摄像头","智能家居","打卡机","行车记录仪","红外热像仪","电脑摄像头","运动相机","智能摄像头"],"bannerList":[{"bannerName":"高新技术企业","bannerType":"2801","companyNum":0,"industryNum":0,"photoUrl":null,"webDesc":null,"companyCardVOS":null,"desc":"0家企业,覆盖0个行业"},{"bannerName":"瞪羚企业","bannerType":"2805","companyNum":0,"industryNum":0,"photoUrl":null,"webDesc":null,"companyCardVOS":null,"desc":"0家企业,覆盖0个行业"},{"bannerName":"国家级技术创新示范企业","bannerType":"2810","companyNum":0,"industryNum":0,"photoUrl":null,"webDesc":null,"companyCardVOS":null,"desc":"0家企业,覆盖0个行业"}],"breakType":3},{"encCompanyId":"1nFy3dU~","bossCompanyUrl":null,"balaCount":"218","interviewCount":"620","salaryCount":"15.0w","jobCount":"0","recruitCount":"72","riskCount":"43","legal":"倪行军","registFinance":"150000万人民币","registTime":"2004-12-08","logo":"https://img.kanzhun.com/images/logo/20211129/9046d074ad69de22c9de281e58db7358.jpg","status":1,"statusStr":"存续","legalRegistFinanceAndTime":"法定代表人:倪行军 注册资本:150000万人民币 成立日期:2004-12-08","recDependence":"最近 3 个月新增岗位200多个","recType":1,"companyName":"支付宝(中国)网络技术有限公司","basicDesc":"上海市 · 互联网 · 1000-9999人","profileLabel":["上海市","互联网","成立19年","火热招聘"],"profileLabelStr":"上海市 互联网 成立19年 火热招聘","companyTag":["A级纳税人","瞪羚企业"],"highlightsName":[],"highlightPositionsName":[],"legalKgId":"","groupName":"","groupType":0,"reasonType":6,"reason":"","highlightsReason":[],"highlightPositionsReason":[],"riskDes":"低风险","comStrengDesc":"实力雄厚","financeTagVO":null,"projectList":null,"productList":null,"bannerList":[{"bannerName":"瞪羚企业","bannerType":"2805","companyNum":0,"industryNum":0,"photoUrl":null,"webDesc":null,"companyCardVOS":null,"desc":"0家企业,覆盖0个行业"}],"breakType":3},{"encCompanyId":"1nx62929Eg~~","bossCompanyUrl":null,"balaCount":"274","interviewCount":"489","salaryCount":"5.3w","jobCount":"0","recruitCount":"98","riskCount":"23","legal":"赵鹏","registFinance":"1000万人民币","registTime":"2013-12-25","logo":"https://c-res.zhipin.com/jrs/6771683433eef3c204a0912d730cf71f.jpg","status":1,"statusStr":"存续","legalRegistFinanceAndTime":"法定代表人:赵鹏 注册资本:1000万人民币 成立日期:2013-12-25","recDependence":"最近 3 个月新增岗位10000多个","recType":1,"companyName":"北京华品博睿网络技术有限公司","basicDesc":"北京市 · 网络招聘 · 1000-9999人","profileLabel":["北京市","网络招聘","成立10年","火热招聘"],"profileLabelStr":"北京市 网络招聘 成立10年 火热招聘","companyTag":["A级纳税人","高新技术企业","科技型中小企业","独角兽企业"],"highlightsName":[],"highlightPositionsName":[],"legalKgId":"","groupName":"","groupType":0,"reasonType":6,"reason":"","highlightsReason":[],"highlightPositionsReason":[],"riskDes":"低风险","comStrengDesc":"实力雄厚","financeTagVO":{"amount":"未披露","round":"IPO上市","src":"https://www.bianews.com/news/flash?id=140751","srcDesc":"新闻资讯","fdate":"2022-12-22"},"projectList":["Boss直聘","看准网"],"productList":["招聘网"],"bannerList":[{"bannerName":"高新技术企业","bannerType":"2801","companyNum":0,"industryNum":0,"photoUrl":null,"webDesc":null,"companyCardVOS":null,"desc":"0家企业,覆盖0个行业"},{"bannerName":"科技型中小企业","bannerType":"2802","companyNum":0,"industryNum":0,"photoUrl":null,"webDesc":null,"companyCardVOS":null,"desc":"0家企业,覆盖0个行业"},{"bannerName":"独角兽企业","bannerType":"2815","companyNum":0,"industryNum":0,"photoUrl":null,"webDesc":null,"companyCardVOS":null,"desc":"0家企业,覆盖0个行业"}],"breakType":3},{"encCompanyId":"03R_3w~~","bossCompanyUrl":null,"balaCount":"658","interviewCount":"2.2k","salaryCount":"4.3k","jobCount":"0","recruitCount":"36","riskCount":"4","legal":"沈祝闽","registFinance":"2429756.8695万香港元","registTime":"2012-07-23","logo":"https://img.kanzhun.com/images/logo/20211127/85344bfebb6c5f6347539006fac693ea.jpg","status":1,"statusStr":"存续","legalRegistFinanceAndTime":"法定代表人:沈祝闽 注册资本:2429756.8695万香港元 成立日期:2012-07-23","recDependence":"最近 3 个月新增岗位200多个","recType":1,"companyName":"亚马逊(中国)投资有限公司","basicDesc":"北京市 · 电子商务 · 1000-9999人","profileLabel":["北京市","电子商务","成立11年","火热招聘"],"profileLabelStr":"北京市 电子商务 成立11年 火热招聘","companyTag":["A级纳税人"],"highlightsName":[],"highlightPositionsName":[],"legalKgId":"","groupName":"","groupType":0,"reasonType":6,"reason":"","highlightsReason":[],"highlightPositionsReason":[],"riskDes":"低风险","comStrengDesc":"实力雄厚","financeTagVO":null,"projectList":null,"productList":null,"bannerList":[],"breakType":3}],"viewedCompanyList":null,"hotSearchKeyWordSideList":null,"hotSearchKeyWordSearchList":null,"advertList":null,"channelSEOLinkVO":null,"friendlyLinkVOList":null,"links":{"companyVOList":[{"title":"重庆公司排名","url":"/rank_c/a101040000/"},{"title":"台湾公司排名","url":"/rank_c/a101340000/"},{"title":"吉林公司排名","url":"/rank_c/a101060000/"},{"title":"香港公司排名","url":"/rank_c/a101320000/"},{"title":"西藏公司排名","url":"/rank_c/a101140000/"},{"title":"宁夏公司排名","url":"/rank_c/a101170000/"},{"title":"河北公司排名","url":"/rank_c/a101090000/"},{"title":"广东公司排名","url":"/rank_c/a101280000/"},{"title":"海南公司排名","url":"/rank_c/a101310000/"},{"title":"贵州公司排名","url":"/rank_c/a101260000/"},{"title":"河源公司排名","url":"/rank_c/ap101281200/"},{"title":"九江公司排名","url":"/rank_c/ap101240200/"},{"title":"杭州公司排名","url":"/rank_c/ap101210100/"},{"title":"巴中公司排名","url":"/rank_c/ap101270900/"},{"title":"郑州公司排名","url":"/rank_c/ap101180100/"},{"title":"儋州公司排名","url":"/rank_c/ap101310400/"},{"title":"阿里地区公司排名","url":"/rank_c/ap101140700/"},{"title":"松原公司排名","url":"/rank_c/ap101060700/"},{"title":"合肥公司排名","url":"/rank_c/ap101220100/"},{"title":"衢州公司排名","url":"/rank_c/ap101211000/"}],"balaCompanyVOList":[{"title":"亳州公司点评","url":"/rank_r/a237/"},{"title":"红河州公司点评","url":"/rank_r/a366/"},{"title":"太仓公司点评","url":"/rank_r/a277/"},{"title":"滨州公司点评","url":"/rank_r/a21/"},{"title":"银川公司点评","url":"/rank_r/a124/"},{"title":"徐州公司点评","url":"/rank_r/a116/"},{"title":"黔西南公司点评","url":"/rank_r/a78/"},{"title":"贵阳公司点评","url":"/rank_r/a32/"},{"title":"南充公司点评","url":"/rank_r/a261/"},{"title":"新北公司点评","url":"/rank_r/a453/"},{"title":"日喀则公司点评","url":"/rank_r/a320/"},{"title":"楚雄公司点评","url":"/rank_r/a326/"},{"title":"合肥公司点评","url":"/rank_r/a41/"},{"title":"丽江公司点评","url":"/rank_r/a200/"},{"title":"铜仁公司点评","url":"/rank_r/a102/"},{"title":"长安公司点评","url":"/rank_r/a176/"},{"title":"泸州公司点评","url":"/rank_r/a62/"},{"title":"济宁公司点评","url":"/rank_r/a61/"},{"title":"琼海公司点评","url":"/rank_r/a359/"},{"title":"本溪公司点评","url":"/rank_r/a210/"}],"balaIndustryVOList":[{"title":"全国石油/石化/化工公司点评","url":"/rank_r/a0/c37/"},{"title":"全国机械/制造公司点评","url":"/rank_r/a0/c61/"},{"title":"全国娱乐/休闲/体育公司点评","url":"/rank_r/a0/c34/"},{"title":"全国咨询公司点评","url":"/rank_r/a0/c17/"},{"title":"全国电子/半导体/集成电路公司点评","url":"/rank_r/a0/c7/"},{"title":"全国信托公司点评","url":"/rank_r/a0/c75/"},{"title":"全国计算机硬件/网络设备公司点评","url":"/rank_r/a0/c1/"},{"title":"全国在线旅游公司点评","url":"/rank_r/a0/c82/"},{"title":"全国O2O公司点评","url":"/rank_r/a0/c69/"},{"title":"全国种子/化肥/农药公司点评","url":"/rank_r/a0/c117/"},{"title":"全国财务/审计/税务公司点评","url":"/rank_r/a0/c125/"},{"title":"全国生活服务公司点评","url":"/rank_r/a0/c64/"},{"title":"全国汽车销售公司点评","url":"/rank_r/a0/c110/"},{"title":"全国互联网金融公司点评","url":"/rank_r/a0/c73/"},{"title":"全国影视/媒体公司点评","url":"/rank_r/a0/c15/"},{"title":"全国汽车生产公司点评","url":"/rank_r/a0/c29/"},{"title":"全国基金公司点评","url":"/rank_r/a0/c84/"},{"title":"全国保险公司点评","url":"/rank_r/a0/c10/"},{"title":"全国IT服务/系统集成公司点评","url":"/rank_r/a0/c3/"},{"title":"全国专业服务公司点评","url":"/rank_r/a0/c53/"}],"interviewVOList":[{"title":"石油/石化/化工行业面试","url":"/rank_i/c0/b37"},{"title":"机械/制造行业面试","url":"/rank_i/c0/b61"},{"title":"娱乐/休闲/体育行业面试","url":"/rank_i/c0/b34"},{"title":"咨询行业面试","url":"/rank_i/c0/b17"},{"title":"电子/半导体/集成电路行业面试","url":"/rank_i/c0/b7"},{"title":"信托行业面试","url":"/rank_i/c0/b75"},{"title":"计算机硬件/网络设备行业面试","url":"/rank_i/c0/b1"},{"title":"在线旅游行业面试","url":"/rank_i/c0/b82"},{"title":"O2O行业面试","url":"/rank_i/c0/b69"},{"title":"种子/化肥/农药行业面试","url":"/rank_i/c0/b117"},{"title":"财务/审计/税务行业面试","url":"/rank_i/c0/b125"},{"title":"生活服务行业面试","url":"/rank_i/c0/b64"},{"title":"汽车销售行业面试","url":"/rank_i/c0/b110"},{"title":"互联网金融行业面试","url":"/rank_i/c0/b73"},{"title":"影视/媒体行业面试","url":"/rank_i/c0/b15"},{"title":"汽车生产行业面试","url":"/rank_i/c0/b29"},{"title":"基金行业面试","url":"/rank_i/c0/b84"},{"title":"保险行业面试","url":"/rank_i/c0/b10"},{"title":"IT服务/系统集成行业面试","url":"/rank_i/c0/b3"},{"title":"专业服务行业面试","url":"/rank_i/c0/b53"}],"salaryVOList":[{"title":"石油/石化/化工行业工资","url":"/rank_m/c0/b37/"},{"title":"机械/制造行业工资","url":"/rank_m/c0/b61/"},{"title":"娱乐/休闲/体育行业工资","url":"/rank_m/c0/b34/"},{"title":"咨询行业工资","url":"/rank_m/c0/b17/"},{"title":"电子/半导体/集成电路行业工资","url":"/rank_m/c0/b7/"},{"title":"信托行业工资","url":"/rank_m/c0/b75/"},{"title":"计算机硬件/网络设备行业工资","url":"/rank_m/c0/b1/"},{"title":"在线旅游行业工资","url":"/rank_m/c0/b82/"},{"title":"O2O行业工资","url":"/rank_m/c0/b69/"},{"title":"种子/化肥/农药行业工资","url":"/rank_m/c0/b117/"},{"title":"财务/审计/税务行业工资","url":"/rank_m/c0/b125/"},{"title":"生活服务行业工资","url":"/rank_m/c0/b64/"},{"title":"汽车销售行业工资","url":"/rank_m/c0/b110/"},{"title":"互联网金融行业工资","url":"/rank_m/c0/b73/"},{"title":"影视/媒体行业工资","url":"/rank_m/c0/b15/"},{"title":"汽车生产行业工资","url":"/rank_m/c0/b29/"},{"title":"基金行业工资","url":"/rank_m/c0/b84/"},{"title":"保险行业工资","url":"/rank_m/c0/b10/"},{"title":"IT服务/系统集成行业工资","url":"/rank_m/c0/b3/"},{"title":"专业服务行业工资","url":"/rank_m/c0/b53/"}],"positionVOList":null},"seo":{"title":"【全国公司排行|排名榜单|哪家好】-看准网","description":"看准网为您提供最新全国公司排行榜单,全国排行为网易(杭州)网络有限公司、北京世纪好未来教育科技有限公司、富士康工业互联网股份有限公司、顺丰速运有限公司、北京学而思教育科技有限公司、杭州海康威视数字技术股份有限公司、支付宝(中国)网络技术有限公司、北京华品博睿网络技术有限公司、亚马逊(中国)投资有限公司,详细了解全国公司哪家好,更多公司信息、公司点评、面试经验、薪酬和招聘信息,尽在看准网。","keywords":"全国公司排行,全国公司排名榜单,全国公司哪家好","pubDate":"2022-06-25T15:00:00","upDate":"2023-10-18T15:00:00","companyName":"","alternate":""},"pager":{"totalRows":300,"pageSize":10,"currentPage":2,"totalPages":30,"startRow":10,"dataCount":0,"companyCount":0,"hasPreviousPage":true,"hasNextPage":true},"titleKeyWordsDesc":"","hrefUrl":""},"resmsg":"成功","rescode":1}'
json_data = json.loads(result)
for index in json_data['resdata']['channelCompanyVOList']:
city = index['basicDesc'].split(' · ')[0]
company = index['basicDesc'].split(' · ')[1]
company_unm = index['basicDesc'].split(' · ')[-1]
if index['productList']:
product = index['productList']
elif index['projectList']:
product = index['projectList']
else:
product = ''
dit = {
'名称': index['companyName'],
'城市': city,
'领域': company,
'规模': company_unm,
'法人': index['legal'],
'成立时间': index['registTime'],
'注册资本': index['registFinance'],
'面试经验': index['interviewCount'],
'工资爆料': index['salaryCount'],
'企业风险': index['riskDes'],
'企业产品': ','.join(product),
}
csv_writer.writerow(dit)
print(dit)
感谢你观看我的文章呐~本次航班到这里就结束啦
希望本篇文章有对你带来帮助 ,有学习到一点知识~
躲起来的星星也在努力发光,你也要努力加油(让我们一起努力叭)。
最后,宣传一下呀~更多源码、资料、素材、解答、交流皆点击下方名片获取呀**