python爬虫-国家企业_国家企业信用公示系统的爬取

  • Post author:
  • Post category:python


具体操作:

response = self.session.get(self.cookie_url)

js_code1 = response.text

print(js_code1)

print(response.cookies)

输出

]>

对这段代码进行js反混淆,得到

var x = “toLowerCase@@@@267@@@@window@36@@@@firstChild@div@@catch@@var@rOm9XFMtA3QKV7nYsPGT4lifyWwkq5vcjH2IdxUoCbhERLaz81DNB6@@dpUWKvmM@@substr@@f@53@30@@split@@String@e@location@cookie@g@if@3D@@1@@for@@RegExp@1500@0@@try@pathname@@@@@length@@@@@reverse@1553939630@DOMContentLoaded@@Path@@19@eval@@https@parseInt@chars@innerHTML@charAt@return@2@while@@match@attachEvent@@challenge@@@Sat@@search@10@charCodeAt@createElement@hgCxEv@JgSe0upZ@__jsl_clearance@Array@addEventListener@50@@2FP@setTimeout@a@false@fromCharCode@8@Mar@@0xEDB88320@href@@captcha@replace@function@0xFF@@new@@@d@onreadystatechange@document@@join@@GMT@@toString@Expires@W7@else@@BWEUk”.replace(/@*$/, “”).split(



版权声明:本文为weixin_32821643原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。