抓取疯狂美工极限词查询页面接口
iamdu2020-01-13 23:17:45Python 浏览: 649474 import requests
# 引用requests模块
url = 'https://jixianci.fkdmg.com/fkapi/cha_jixianci.php?typ=cha&ajax=1&formhash=75666097'
# 请求歌曲评论的url参数的前面部分
data = {
'ckgf': 'on',
'time': 1578927855,
'ckmy': 'on',
'formhash':'75666097',
'q': '专利号是多少啊最佳专利',
'sign': 'b77264015c3a4d9580168e74c111b3b7'
}
headers = {
'Accept': '*/*',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'zh-CN,zh;q=0.9',
'Connection': 'keep-alive',
'Content-Length': '108',
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': 'security_session_verify=e30beae1229c3ef8558d999424f7e565; ROpz_f206_saltkey=roBWA6x3; ROpz_f206_lastvisit=1578924204; ROpz_f206_con_request_uri=https%3A%2F%2Fjixianci.fkdmg.com%2Fconnect.php%3Fmod%3Dlogin%26op%3Dcallback%26referer%3D%252Ffkapi%252Fuserpm.php; ROpz_f206_client_created=1578927829; ROpz_f206_client_token=65BAF91FC8523C5C8F1A8D77BBC07DD4; ROpz_f206_connect_qq_nick=DU; ROpz_f206_con_auth_hash=f8f8Xru7ulw4JMBI93emK4SBCH6ghHFQjsutv%2Feou4AY4mgNVSjQhTE%2FBXhEFOo%2BgJ9rM7OGwkmMR2AymQ; ROpz_f206_connect_js_name=guest_ptlogin; ROpz_f206_stats_qc_login=4; ROpz_f206_ulastactivity=1578927829%7C0; ROpz_f206_auth=f9cd36fZQ8jMbsZdp%2BqgK7QDyiZTyjUmFctcfM4%2Bmv4A7DTRCXtRE23PP%2BmXk8p9a17nuR%2Fxzr3pe%2F48o1xKqNQmUWc; ROpz_f206_connect_login=1; ROpz_f206_connect_is_bind=1; ROpz_f206_connect_uin=65BAF91FC8523C5C8F1A8D77BBC07DD4; Hm_lvt_967809a2bb6d37c38e5a631041633f46=1578927805,1578927857; Hm_lpvt_967809a2bb6d37c38e5a631041633f46=1578927857; ROpz_f206_lastact=1578927864%09cha_jixianci.php%09',
'Host': 'jixianci.fkdmg.com',
'Origin': 'https://jixianci.fkdmg.com',
'Referer': 'https://jixianci.fkdmg.com/',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3314.0 Safari/537.36 SE 2.X MetaSr 1.0',
'X-Requested-With': 'XMLHttpRequest'
}
# 将参数封装为字典
res_comments = requests.post(url,data=data,headers=headers)
print(res_comments.json()['jieguo'])
联系站长
友情链接
其他入口
QQ与微信加好友
粤ICP备17018681号 站点地图 www.iamdu.com 版权所有 服务商提供:阿里云 Designed by :DU
本站部分资源内容来源于网络,若侵犯您的权益,请联系删除!