12.通过微信小程序端访问企查查(采集工商信息)

时间:2024-03-10 18:12:43
需要注意的问题:

一、
1.微信端访问企查查小程序需要登录。
2.访问抓包获取的url是有时效性的过一段时间就不能用了。
http://xcx.qichacha.com/wxa/v1/base/getEntDetail?unique=e434b35dd6c22f0d8ba51da8e2572923&token=5bd4f2f035570fd93a45528222883421
url 主要是由两个主要参数拼接而成的 :unique 和 token
url 就是下面获取的KeyNo唯一索引
token 应该是访问页面生成的参数(具有一定的时效性)

3.访问可能会遇到其他的问题这里也没做细化处理,因为通过手机端app访问数据没有接口返回就拿不到数据,就采用这种方式去尝试一下,还是可以的。只是初步的对此方法做了
简单的分析与处理。
4.之后需要考虑的问题就是如何获取 url里重要的两个参数,再去请求大量数据。

二、
1.通过微信小程序端搜索公司:

 

这里就能抓取到相应的数据包,就可以分析里面的数据信息。

 

2.分析fiddler抓包情况


工商信息的主要数据就在 result 的 company 里:

字段信息再一一分析

{\'Unique\': \'e434b35dd6c22f0d8ba51da8e2572923\', \'profile\': {\'industry\': \'\', \'companyRange\': \'\', \'profileDesc\': \'\'},
\'Name\': \'上海医药集团股份有限公司\', \'CommonList\': [{\'Value\': \'上海医药\', \'KeyDesc\': \'公司简称\', \'Key\': 5}, {
\'Value\': \'{"KeyNo":"g94e7069c3717938655adc045b8e1503","Name":"上海市国有资产管理办公室"}\', \'Key\': 6},
{\'Value\': \'145\', \'KeyDesc\': \'参保人数\', \'Key\': 3}], \'Product\': None,
\'DUNSNo\': \'654539683\', \'IsCert\': \'0\', \'DbUpdatedDate\': 1541728144, \'Exceptions\': [], \'RecCap\': \'268891.0538万元人民币\',
\'HoldingType\': \'未知\', \'OperName\': \'周军\', \'CompanyStatus\': 10, \'UpdatedDate\': \'2018-11-09\', \'Type\': 0,
\'ShortStatus\': \'存续\', \'Oper\': {\'CompanyCount\': 11, \'Name\': \'周军\', \'OperType\': 1, \'HasImage\': False, \'Org\': 2,
\'KeyNo\': \'p773e4677140ea9ff1cff36eb273b1b9\'}, \'Assistance\': [],
\'Status\': \'存续(在营、开业、在册)\', \'Employees\': [
{\'ScertName\': None, \'Name\': \'左敏\', \'CompanyCount\': 1, \'Job\': \'董事兼总经理\', \'HasImage\': False, \'No\': 0,
\'KeyNo\': \'p3d81d7f1eba50cdbbcbd09387d3246d\', \'CerNo\': None, \'avatar\': \'\'},
{\'ScertName\': None, \'Name\': \'洪亮\', \'CompanyCount\': 10, \'Job\': \'董事\', \'HasImage\': False, \'No\': 0,
\'KeyNo\': \'p750de4e2be0c09a197dd5053b12ed3d\', \'CerNo\': None, \'avatar\': \'\'},
{\'ScertName\': None, \'Name\': \'李安\', \'CompanyCount\': 6, \'Job\': \'董事\', \'HasImage\': False, \'No\': 0,
\'KeyNo\': \'p93154108b70ee9deaccb4d8c6fb537d\', \'CerNo\': None, \'avatar\': \'\'},
{\'ScertName\': None, \'Name\': \'徐有利\', \'CompanyCount\': 10, \'Job\': \'监事\', \'HasImage\': False, \'No\': 0,
\'KeyNo\': \'p6aa69f01ea38e7190a514252bbfd744\', \'CerNo\': None, \'avatar\': \'\'},
{\'ScertName\': None, \'Name\': \'尹锦滔\', \'CompanyCount\': 1, \'Job\': \'董事\', \'HasImage\': False, \'No\': 0,
\'KeyNo\': \'p185958e02d870d9448a2621a21d38dc\', \'CerNo\': None, \'avatar\': \'\'},
{\'ScertName\': None, \'Name\': \'周军\', \'CompanyCount\': 11, \'Job\': \'董事长\', \'HasImage\': False, \'No\': 0,
\'KeyNo\': \'p773e4677140ea9ff1cff36eb273b1b9\', \'CerNo\': None, \'avatar\': \'\'},
{\'ScertName\': None, \'Name\': \'李永忠\', \'CompanyCount\': 14, \'Job\': \'董事\', \'HasImage\': False, \'No\': 0,
\'KeyNo\': \'p69fb89f3f87384edf50a657a5e05ffe\', \'CerNo\': None, \'avatar\': \'\'},
{\'ScertName\': None, \'Name\': \'蔡江南\', \'CompanyCount\': 4, \'Job\': \'董事\', \'HasImage\': False, \'No\': 0,
\'KeyNo\': \'p8ccb6dda63fa9f1346997b5357910f3\', \'CerNo\': None, \'avatar\': \'\'},
{\'ScertName\': None, \'Name\': \'忻铿\', \'CompanyCount\': 3, \'Job\': \'监事\', \'HasImage\': False, \'No\': 0,
\'KeyNo\': \'p3c3003c35cbb629ddb027d42b053d20\', \'CerNo\': None, \'avatar\': \'\'},
{\'ScertName\': None, \'Name\': \'沈波\', \'CompanyCount\': 17, \'Job\': \'董事\', \'HasImage\': False, \'No\': 0,
\'KeyNo\': \'pa8884cb97f4a4f5bdf07ae51806e9ad\', \'CerNo\': None, \'avatar\': \'\'},
{\'ScertName\': None, \'Name\': \'谢祖墀\', \'CompanyCount\': 1, \'Job\': \'董事\', \'HasImage\': False, \'No\': 0,
\'KeyNo\': \'p19e5d69d9a31868ba58be65238d3605\', \'CerNo\': None, \'avatar\': \'\'},
{\'ScertName\': None, \'Name\': \'陈欣\', \'CompanyCount\': 2, \'Job\': \'监事\', \'HasImage\': False, \'No\': 0,
\'KeyNo\': \'p937ae2394bdf39c4f46c71efd2adffc\', \'CerNo\': None, \'avatar\': \'\'}],
\'Area\': {\'Province\': \'上海市\', \'City\': \'上海市\', \'County\': \'黄浦区\'}, \'Tag\': None,
\'EnglishName\': \'Shanghai Pharmaceuticals Holding Co., Ltd.\', \'isMonitored\': False,
\'ContactInfo\': {\'PhoneNumber\': \'021-63730908\', \'WebSite\': [{\'Url\': \'http://www.sphchina.com/\', \'Name\': None}],
\'Email\': \'pharm@sphchina.com\'}, \'BelongOrg\': \'上海市工商行政管理局\', \'companyTags\': [
{\'DataExtend\': \'\', \'ResponseType\': \'POPUP\', \'Color\': \'#447fdf\', \'Name\': \'存续\', \'ShortName\': \'\', \'Type\': 5,
\'sortId\': 3, \'Data\': [{\'Url\': \'\', \'Name\': \'\', \'ChangeDate\': \'\'}]},
{\'DataExtend\': \'601607\', \'TradingPlaceCode\': \'001002\', \'Color\': \'#f5a57a\', \'TradingPlaceName\': \'上海证券交易所\',
\'Name\': \'上市公司\', \'ResponseType\': \'NONE\', \'ShortName\': \'上海医药\', \'Type\': 2, \'sortId\': 5, \'Data\': [
{\'Url\': \'undefined/app_9.2.6/ipo-detail/index.html?code=601607&unique=e434b35dd6c22f0d8ba51da8e2572923\',
\'Name\': \'\', \'ChangeDate\': \'\'}]},
{\'DataExtend\': \'\', \'ResponseType\': \'POPUP\', \'Color\': \'#54c9a4\', \'Name\': \'曾用名\', \'ShortName\': \'\', \'Type\': 99,
\'sortId\': 7, \'Data\': [{\'Url\': \'\', \'Name\': \'上海市医药股份有限公司\', \'ChangeDate\': 0}]},
{\'DataExtend\': \'\', \'ResponseType\': \'REDIRECT_LOCALPAGE\', \'Color\': \'#7dbe61\', \'Name\': \'发票抬头\', \'ShortName\': \'\',
\'Type\': 95, \'sortId\': 10, \'Data\': []}], \'EndDate\': 0, \'IsExpired\': False, \'HisTelList\': [],
\'companyExtendInfo\': {}, \'CheckDate\': \'1994-01-18\', \'OrgNo\': \'13358488-X\',
\'CreditCodeDesc\': \'统一社会信用代码:是一组长度为18位的用于法人和其他组织身份识别的代码。\', \'Licens\': [
{\'ValidityFrom\': \'2016-01-01\', \'LicensDocName\': \'对企业技术中心的认定\', \'No\': \'1\', \'LicensContent\': \'上海市市级企业技术中心\',
\'ValidityTo\': \'2017-12-31\', \'LicensOffice\': \'上海市经济和信息化委员会\', \'LicensDocNo\': \'PJSZX2015209\'},
{\'ValidityFrom\': \'2017-07-06\', \'LicensDocName\': \'建设项目环境影响评价文件的审批\', \'No\': \'2\',
\'LicensContent\': \'关于上海医药集团股份有限公司*研究院项目环境影响报告表的许可\', \'ValidityTo\': \'2099-12-31\',
\'LicensOffice\': \'浦东新区环境保护和市容卫生管理局\', \'LicensDocNo\': \'沪浦环保许评[2017]936\'},
{\'ValidityFrom\': \'2017-07-27\', \'LicensDocName\': \'建设项目环境影响评价文件的审批\', \'No\': \'3\',
\'LicensContent\': \'关于抗体药物张江实训平台产学研中心项目环境影响报告表的许可\', \'ValidityTo\': \'2099-12-31\',
\'LicensOffice\': \'浦东新区环境保护和市容卫生管理局\', \'LicensDocNo\': \'沪浦环保许评[2017]1062\'}], \'OpForm\': None,
\'AbuItem\': \'原料药和各种剂型(包括但不限于片剂、胶囊剂、气雾剂、免疫制剂、颗粒剂、软膏剂、丸剂、口服液、吸入剂、注射剂、搽剂、酊剂、栓剂)的医药产品(包括但不限于化学原料药、化学药制剂、中药材、中成药、中药饮片、生化药品、生物制品、麻醉药品、精神药品、医疗用毒性药品【与经营范围相适应】、疫苗)、保健品、医疗器械及相关产品的研发、制造和销售,医药装备制造、销售和工程安装、维修,仓储物流、海上、陆路、航空货运代理业务,实业投资、资产经营、提供国际经贸信息和咨询服务,自有房屋租赁,自营和代理各类药品及相关商品和技术的进出口业务。【依法须经批准的项目,经相关部门批准后方可开展经营活动】\',
\'Pledge\': [], \'legalManType\': \'法定代表人\', \'CreditCode\': \'9131000013358488X7\', \'Partners\': [
{\'InvestType\': None, \'StockPercentValue\': 100, \'KeyNo\': \'\', \'RealCapi\': None, \'avatar\': \'\', \'StockName\': \'流通股\',
\'IdentifyNo\': \'不详\', \'LargePartner\': \'大股东\', \'InvestName\': None, \'CapiRate\': \'100%\',
\'isRedirectSearchPage\': True, \'IdentifyType\': \'不需要登记的社团法人\', \'ShoudDate\': \'\', \'ShouldCapiAmount\': 284208.9322,
\'ShouldCapi\': \'284208.9322\', \'StockType\': \'其他投资者\', \'HasImage\': False, \'Org\': -1, \'StockPercent\': \'100%\',
\'CompanyCount\': 0, \'h5Url\': \'\', \'CapiDate\': \'\'}], \'threeBoardCode\': \'\', \'Address\': \'中国(上海)*贸易试验区张江路92\',
\'extendLink\': [{\'subTitle\': \'上市详情\', \'isHot\': False,
\'url\': \'undefined/app_9.2.6/ipo-detail/index.html?code=601607&unique=e434b35dd6c22f0d8ba51da8e2572923\',
\'isNew\': False, \'name\': \'上海医药(601607)\'}], \'Financing\': None, \'StartDate\': \'1994-01-18\',
\'TeamEnd\': \'\', \'EconKind\': \'其他股份有限公司(上市)\', \'IsFocus\': False, \'HistoryDataList\': [{\'Children\': [
{\'Children\': [], \'DataName\': \'上海市医药股份有限公司\', \'ChangeDate\': None, \'Category\': 1, \'DataExpand\': \'0\',
\'AlterContent\': None, \'TotalCount\': 0}], \'DataName\': \'曾用名\', \'ChangeDate\': None, \'Category\': 1,
\'DataExpand\': None,
\'AlterContent\': None,
\'TotalCount\': 1},
{\'Children\': [],
\'DataName\': \'历史股东\',
\'ChangeDate\': None,
\'Category\': 2,
\'DataExpand\': None,
\'AlterContent\': None,
\'TotalCount\': 0}, {\'Children\': [
{\'Children\': [], \'DataName\': \'周杰\', \'ChangeDate\': None, \'Category\': 3, \'DataExpand\': None,
\'AlterContent\': \'\', \'TotalCount\': 0},
{\'Children\': [], \'DataName\': \'楼定波\', \'ChangeDate\': None, \'Category\': 3, \'DataExpand\': None,
\'AlterContent\': \'\', \'TotalCount\': 0}], \'DataName\': \'历史法人\', \'ChangeDate\': None, \'Category\': 3,
\'DataExpand\': None,
\'AlterContent\': None,
\'TotalCount\': 2}],
\'ChangeDiffInfo\': {\'CompanyName\': \'上海医药集团股份有限公司\', \'TotalCount\': 16, \'UpdateDate\': 1522721921,
\'KeyNo\': \'e434b35dd6c22f0d8ba51da8e2572923\', \'ChangeList\': [
{\'ProjectName\': \'注册资本()变更\', \'No\': 0, \'BeforeList\': [\'<em>268891.053800</em>万人民币\'],
\'ChangeDate\': \'2018-04-02\', \'IsStart\': False, \'AfterList\': [\'<em>284208.9322</em>万人民币<em>+5.7%</em>\']},
{\'ProjectName\': \'章程备案\', \'No\': 0, \'BeforeList\': [\'201<em>6</em>-<em>1</em>0-2<em>0</em>章程备案\'],
\'ChangeDate\': \'2018-04-02\', \'IsStart\': False, \'AfterList\': [\'201<em>8</em>-0<em>3</em>-2<em>3</em>章程备案\']},
{\'ProjectName\': \'法定代表人变更\', \'No\': 0, \'BeforeList\': [\'<em>周杰【退出】</em>\'], \'ChangeDate\': \'2016-11-21\',
\'IsStart\': True, \'AfterList\': [\'<em>周军*【新增】</em>\']},
{\'ProjectName\': \'章程备案\', \'No\': 0, \'BeforeList\': [\'2016-<em>07-0</em>1章程备案\'], \'ChangeDate\': \'2016-11-21\',
\'IsStart\': False, \'AfterList\': [\'2016-<em>1</em>0-<em>2</em>0章程备案\']}, {\'ProjectName\': \'董事备案\', \'No\': 0,
\'BeforeList\': [\'李安\', \'左敏\', \'尹锦滔\',
\'谢祖墀\',
\'<em>周杰【退出】</em>\',
\'沈波\', \'蔡江南\', \'李永忠\',
\'洪亮\'],
\'ChangeDate\': \'2016-11-21\',
\'IsStart\': True,
\'AfterList\': [\'蔡江南\', \'洪亮\', \'李安\',
\'沈波\', \'李永忠\', \'尹锦滔\',
\'左敏\', \'谢祖墀\',
\'<em>周军*【新增】</em>\']},
{\'ProjectName\': \'监事备案\', \'No\': 0, \'BeforeList\': [\'忻铿;\', \'<em>张震北;【退出】</em>\', \'陈欣\'],
\'ChangeDate\': \'2016-07-27\', \'IsStart\': False, \'AfterList\': [\'陈欣;\', \'忻铿;\', \'<em>徐有利【新增】</em>\']},
{\'ProjectName\': \'董事备案\', \'No\': 0,
\'BeforeList\': [\'<em>胡逢祥;【退出】</em>\', \'<em>陈乃蔚;【退出】</em>\', \'谢祖墀;\', \'尹锦滔;\', \'左敏;\',
\'<em>姜鸣;LIZHENFU;【退出】</em>\', \'周杰\'], \'ChangeDate\': \'2016-07-27\', \'IsStart\': False,
\'AfterList\': [\'左敏;\', \'谢祖墀;\', \'尹锦滔;\', \'<em>洪亮;【新增】</em>\', \'<em>李永忠;【新增】</em>\', \'<em>沈波;【新增】</em>\',
\'<em>李安;【新增】</em>\', \'<em>蔡江南;【新增】</em>\', \'周杰\']},
{\'ProjectName\': \'章程备案\', \'No\': 0, \'BeforeList\': [\'201<em>3</em>-0<em>6</em>-0<em>5</em>章程备案\'],
\'ChangeDate\': \'2016-07-27\', \'IsStart\': False, \'AfterList\': [\'201<em>6</em>-0<em>7</em>-0<em>1</em>章程备案\']},
{\'ProjectName\': \'经理备案\', \'No\': 0, \'BeforeList\': [\'左敏\'], \'ChangeDate\': \'2016-07-27\', \'IsStart\': False,
\'AfterList\': [\'左敏\']},
{\'ProjectName\': \'住所变更\', \'No\': 0, \'BeforeList\': [\'中国(上海)*贸易试验区张江路92\'], \'ChangeDate\': \'2016-05-16\',
\'IsStart\': False, \'AfterList\': [\'中国(上海)*贸易试验区张江路92\']}, {\'ProjectName\': \'董事备案\', \'No\': 0,
\'BeforeList\': [\'谢祖墀;\', \'尹锦滔;\', \'胡逢祥;\',
\'左敏;LIZHENFU;\',
\'<em>楼定波;【退出】</em>\', \'姜鸣;\',
\'周杰;\', \'陈乃蔚\'],
\'ChangeDate\': \'2016-05-16\', \'IsStart\': False,
\'AfterList\': [\'姜鸣;\', \'陈乃蔚;LIZHENFU;\', \'胡逢祥;\',
\'尹锦滔;\', \'谢祖墀;\', \'左敏;\', \'周杰\']},
{\'ProjectName\': \'法定代表人变更\', \'No\': 0, \'BeforeList\': [\'<em>楼定波【退出】</em>\'], \'ChangeDate\': \'2016-05-16\',
\'IsStart\': False, \'AfterList\': [\'<em>周杰【新增】</em>\']}, {\'ProjectName\': \'其他变更\', \'No\': 0, \'BeforeList\': [
\'201<em>4</em>-0<em>4</em>-<em>03</em>~201<em>5</em>-03-31\'], \'ChangeDate\': \'2015-03-26\',
\'IsStart\': False, \'AfterList\': [
\'201<em>5</em>-0<em>3</em>-<em>26</em>~201<em>6</em>-03-31\']}, {\'ProjectName\': \'经营范围变更\', \'No\': 0,
\'BeforeList\': [
\'原料药和各种剂型(包括但不限于片剂、胶囊剂、气雾剂、免疫制剂、颗粒剂、软膏剂、丸剂、口服液、吸入剂、注射剂、搽剂、酊剂、栓剂)的医药产品(包括但不限于化学原料药、化学药制剂、中药材、中成药、中药饮片、生化药品、生物制品、麻醉药品、精神药品、医疗用毒性药品【与经营范围相适应】、疫苗)、保健品、医疗器械及相关产品的研发、制造和销售,医药装备制造、销售和工程安装、维修,仓储物流、海上、陆路、航空货运代理业务,实业投资、资产经营、提供国际经贸信息和咨询服务,自有房屋租赁,自营和代理各类药品及相关商品和技术的进出口业务。【<em>企业</em><em>营涉及行政许可</em>,<em>凭许可证件</em>经营】\'],
\'ChangeDate\': \'2014-04-03\',
\'IsStart\': False, \'AfterList\': [
\'原料药和各种剂型(包括但不限于片剂、胶囊剂、气雾剂、免疫制剂、颗粒剂、软膏剂、丸剂、口服液、吸入剂、注射剂、搽剂、酊剂、栓剂)的医药产品(包括但不限于化学原料药、化学药制剂、中药材、中成药、中药饮片、生化药品、生物制品、麻醉药品、精神药品、医疗用毒性药品【与经营范围相适应】、疫苗)、保健品、医疗器械及相关产品的研发、制造和销售,医药装备制造、销售和工程安装、维修,仓储物流、海上、陆路、航空货运代理业务,实业投资、资产经营、提供国际经贸信息和咨询服务,自有房屋租赁,自营和代理各类药品及相关商品和技术的进出口业务。【<em>依法须</em><em>批准的项目,经相关部门批准后方可开展经</em><em>活动</em>\']},
{\'ProjectName\': \'其他变更\', \'No\': 0,
\'BeforeList\': [\'201<em>3</em>-0<em>6</em>-<em>17</em>~201<em>4</em>-03-31\'], \'ChangeDate\': \'2014-04-03\',
\'IsStart\': False, \'AfterList\': [\'201<em>4</em>-0<em>4</em>-<em>03</em>~201<em>5</em>-03-31\']},
{\'ProjectName\': \'一般经营项目变更\', \'No\': 0, \'BeforeList\': [
\'原料药和各种剂型(包括但不限于片剂、胶囊剂、气雾剂、免疫制剂、颗粒剂、软膏剂、丸剂、口服液、吸入剂、注射剂、搽剂、酊剂、栓剂)的医药产品(包括但不限于化学原料药、化学药制剂、中药材、中成药、中药饮片、生化药品、生物制品、麻醉药品、精神药品、医疗用毒性药品【与经营范围相适应】、疫苗)、保健品、医疗器械及相关产品的研发、制造和销售,医药装备制造、销售和工程安装、维修,仓储物流、海上、陆路、航空货运代理业务,实业投资、资产经营、提供国际经贸信息和咨询服务,自有房屋租赁,自营和代理各类药品及相关商品和技术的进出口业务\'],
\'ChangeDate\': \'2014-04-03\', \'IsStart\': False, \'AfterList\': [
\'原料药和各种剂型(包括但不限于片剂、胶囊剂、气雾剂、免疫制剂、颗粒剂、软膏剂、丸剂、口服液、吸入剂、注射剂、搽剂、酊剂、栓剂)的医药产品(包括但不限于化学原料药、化学药制剂、中药材、中成药、中药饮片、生化药品、生物制品、麻醉药品、精神药品、医疗用毒性药品【与经营范围相适应】、疫苗)、保健品、医疗器械及相关产品的研发、制造和销售,医药装备制造、销售和工程安装、维修,仓储物流、海上、陆路、航空货运代理业务,实业投资、资产经营、提供国际经贸信息和咨询服务,自有房屋租赁,自营和代理各类药品及相关商品和技术的进出口业务\']}]},
\'No\': \'310000000026221\', \'isRisk\': \'\', \'RegistCapi\': \'284208.9322万元人民币\',
\'Industry\': {\'Industry\': \'制造业\', \'SubIndustryCode\': 27, \'IndustryCode\': \'C\', \'SubIndustry\': \'医药制造业 \'},
\'GroupId\': \'\',
\'IndustryV3\': {\'MiddleCategoryCode\': None, \'SubIndustryCode\': \'27\', \'SmallCategory\': None, \'SubIndustry\': \'医药制造业 \',
\'SmallCategoryCode\': None, \'Industry\': \'制造业\', \'MiddleCategory\': None, \'IndustryCode\': \'C\'},
\'Tags\': [{\'DataExtend\': \'601607\', \'TradingPlaceCode\': \'001002\', \'Color\': \'#f5a57a\', \'TradingPlaceName\': \'上海证券交易所\',
\'Name\': \'上市公司\', \'ResponseType\': \'NONE\', \'ShortName\': \'上海医药\', \'Type\': 2, \'sortId\': 5, \'Data\': [
{\'Url\': \'undefined/app_9.2.6/ipo-detail/index.html?code=601607&unique=e434b35dd6c22f0d8ba51da8e2572923\',
\'Name\': \'\', \'ChangeDate\': \'\'}]},
{\'DataExtend\': \'\', \'ResponseType\': \'POPUP\', \'Color\': \'#447fdf\', \'Name\': \'存续\', \'ShortName\': \'\', \'Type\': 5,
\'sortId\': 3, \'Data\': [{\'Url\': \'\', \'Name\': \'\', \'ChangeDate\': \'\'}]},
{\'DataExtend\': \'\', \'ResponseType\': \'REDIRECT_LOCALPAGE\', \'Color\': \'#7dbe61\', \'Name\': \'发票抬头\',
\'ShortName\': \'\', \'Type\': 95, \'sortId\': 10, \'Data\': []},
{\'DataExtend\': \'\', \'ResponseType\': \'POPUP\', \'Color\': \'#54c9a4\', \'Name\': \'曾用名\', \'ShortName\': \'\',
\'Type\': 99, \'sortId\': 7, \'Data\': [{\'Url\': \'\', \'Name\': \'上海市医药股份有限公司\', \'ChangeDate\': 0}]}],
\'SimpleCancellation\': None, \'Liquidation\': {}, \'IsEdit\': True, \'isSendDjgReport\': True, \'Branches\': [
{\'Name\': \'上海市医药股份有限公司延安东路分公司\', \'No\': None, \'KeyNo\': \'00da3a19021d907a89736821a88c1ef0\',
\'RegNo\': \'310101000119397\', \'BelongOrg\': \'黄浦区市场监管局\'},
{\'Name\': \'上海市医药股份有限公司沪西分公司\', \'No\': None, \'KeyNo\': \'9ef86af7a292e0a291413b04c740a165\',
\'RegNo\': \'310106000051860\', \'BelongOrg\': \'静安区市场监督管理局\'},
{\'Name\': \'上海市医药股份有限公司市郊分公司\', \'No\': None, \'KeyNo\': \'ca29bfae703926a39588dc1348309b66\',
\'RegNo\': \'3100001002799010002\', \'BelongOrg\': \'黄浦区市场监管局\'},
{\'Name\': \'上海市医药股份有限公司进出口分公司\', \'No\': None, \'KeyNo\': \'a3fab76f7a869d5e9078dd84ef612240\',
\'RegNo\': \'3100001002799090001\', \'BelongOrg\': \'虹口区市场监督管理局\'},
{\'Name\': \'上海市医药股份有限公司沪东分公司\', \'No\': None, \'KeyNo\': \'516c39a09c09c8c759647eeff4882bbb\',
\'RegNo\': \'310110000109415\', \'BelongOrg\': \'杨浦区市场监督管理局\'},
{\'Name\': \'上海市医药股份有限公司新药分公司\', \'No\': None, \'KeyNo\': \'b3ab19616ca15f17f40d1a1f02281c53\',
\'RegNo\': \'310105000329707\', \'BelongOrg\': \'长宁区市场监督管理局\'},
{\'Name\': \'上海市医药股份有限公司汽车修理分公司\', \'No\': None, \'KeyNo\': \'d44d1bf2d4addfa9450d5a29d4925577\',
\'RegNo\': \'310109000484111\', \'BelongOrg\': \'虹口区市场监督管理局\'},
{\'Name\': \'上海医药集团股份有限公司*研究院\', \'No\': None, \'KeyNo\': \'791dcac87ea760f00b1f5bf48aa3bb46\',
\'RegNo\': \'91310115780016467E\', \'BelongOrg\': \'*贸易试验区市场监管局\'}], \'IsRoadMap\': False, \'CompanyTemplate\': \'0\',
\'Penalty\': [], \'TermStart\': \'1994-01-18\',
\'ImageUrl\': \'https://co-image.qichacha.com/CompanyImage/e434b35dd6c22f0d8ba51da8e2572923.jpg\',
\'entInformationDynamic\': {\'subTitle\': \'共有 7 条动态\',
\'url\': \'undefined/app_10.0.2/company-event/index.html?keyNo=e434b35dd6c22f0d8ba51da8e2572923&logo=https://co-image.qichacha.com/CompanyImage/e434b35dd6c22f0d8ba51da8e2572923.jpg\',
\'name\': \'企业情报动态\'}, \'CompanyTemplateType\': \'3\',
\'OriginalName\': [{\'Name\': \'上海市医药股份有限公司\', \'ChangeDate\': 0}], \'ShortEconKind\': \'其它类型\', \'Province\': \'SH\',
\'CompanyCode\': \'601607\', \'MPledge\': [],
\'CbuItem\': \'原料药和各种剂型(包括但不限于片剂、胶囊剂、气雾剂、免疫制剂、颗粒剂、软膏剂、丸剂、口服液、吸入剂、注射剂、搽剂、酊剂、栓剂)的医药产品(包括但不限于化学原料药、化学药制剂、中药材、中成药、中药饮片、生化药品、生物制品、麻醉药品、精神药品、医疗用毒性药品【与经营范围相适应】、疫苗)、保健品、医疗器械及相关产品的研发、制造和销售,医药装备制造、销售和工程安装、维修,仓储物流、海上、陆路、航空货运代理业务,实业投资、资产经营、提供国际经贸信息和咨询服务,自有房屋租赁,自营和代理各类药品及相关商品和技术的进出口业务。【依法须经批准的项目,经相关部门批准后方可开展经营活动】\',
\'ShortStatusDesc\': \'\', \'companyImage\': {\'url\': \'\', \'text\': \'\'},
\'Scope\': \'原料药和各种剂型(包括但不限于片剂、胶囊剂、气雾剂、免疫制剂、颗粒剂、软膏剂、丸剂、口服液、吸入剂、注射剂、搽剂、酊剂、栓剂)的医药产品(包括但不限于化学原料药、化学药制剂、中药材、中成药、中药饮片、生化药品、生物制品、麻醉药品、精神药品、医疗用毒性药品【与经营范围相适应】、疫苗)、保健品、医疗器械及相关产品的研发、制造和销售,医药装备制造、销售和工程安装、维修,仓储物流、海上、陆路、航空货运代理业务,实业投资、资产经营、提供国际经贸信息和咨询服务,自有房屋租赁,自营和代理各类药品及相关商品和技术的进出口业务。\r\n【依法须经批准的项目,经相关部门批准后方可开展经营活动】\',
\'TaxNo\': \'9131000013358488X7\', \'SpotCheck\': []}

 

3. 代码:
import
requests import time,random def main(): headers = { # 将Fiddler右上方的内容填在headers中 "charset":"utf-8", "Accept-Encoding": "gzip", "referer": "https://servicewechat.com/wx395200814fcd7599/22/page-frame.html", "content-type": "application/json", "User-Agent": "Mozilla/5.0 (Linux; Android 7.1.2; MI 5X Build/N2G47H; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/64.0.3282.137 Mobile Safari/537.36 MicroMessenger/6.7.3.1360(0x26070338) NetType/WIFI Language/zh_CN Process/toolsmp", "Host": "xcx.qichacha.com", "Connection": "Keep-Alive", } url = "http://xcx.qichacha.com/wxa/v1/base/getEntDetail?unique=e434b35dd6c22f0d8ba51da8e2572923&token=5bd4f2f035570fd93a45528222883421" # 表显示在json格式下 res = requests.get(url=url, headers=headers).json() content = (res[\'result\'])[\'Company\'] Unique = content[\'Unique\'] print(\'KeyNo: \'+Unique) OperName = content[\'OperName\'] print(\'法定代表人: \'+ OperName) Email = (content[\'ContactInfo\'])[\'Email\'] print(\'邮箱: \'+Email) PhoneNumber = (content[\'ContactInfo\'])[\'PhoneNumber\'] print(\'联系方式: \'+PhoneNumber) StartDate = content[\'StartDate\'] print(\'成立日期: \'+ StartDate) RecCap = content[\'RecCap\'] print(\'注册资本: \'+ RecCap) EconKind = content[\'EconKind\'] print(\'企业类型: \'+EconKind) Status = content[\'Status\'] print(\'登记状态: \'+Status) CreditCode = content[\'CreditCode\'] print(\'统一社会信用代码: \'+CreditCode) No = content[\'No\'] print(\'工商注册号: \'+No) OrgNo = content[\'OrgNo\'] print(\'组织机构代码: \'+OrgNo) EnglishName = content[\'EnglishName\'] print(\'英文名: \'+EnglishName) try: OriginalName = (content[\'OriginalName\'])[\'Name\'] print(\'曾用名 \'+OriginalName) except: pass Industry = (content[\'Industry\'])[\'SubIndustry\'] print(\'所属行业: \'+Industry) AbuItem = content[\'AbuItem\'] print(\'经营范围: \'+AbuItem) Address = content[\'Address\'] print(\'公司地址: \'+Address) TermStart = content[\'TermStart\'] TeamEnd = content[\'TeamEnd\'] print(\'营业期限: \'+ TermStart+\'-\'+TeamEnd) StartDate = content[\'StartDate\'] print(\'核准日期: \'+StartDate) BelongOrg = content[\'BelongOrg\'] print(\'登记机关: \'+BelongOrg) if __name__ == "__main__": main()

执行效果如图:


又搜索了两个公司试了一下,只是改变了一下 unique 参数,发现token 在一段时间内还是有用的,只是把unique参数给替换了。