用FD抓包爬取app豆果美食
本帖最后由 wcq15759797758 于 2021-7-17 13:58 编辑模拟器使用appfd抓包
附代码
import json
import requests
headers = {
"client":"4",
"version":"7008.2",
"device":"SM-G977N",
"sdk":"22,5.1.1",
"channel":"baidu",
"resolution":"1600*900",
"display-resolution":"1600*900",
"dpi":"2.0",
"brand":"Android",
"scale":"2.0",
"timezone":"28800",
"language":"zh",
"User-Agent":"Mozilla/5.0 (Linux; Android 5.1.1; SM-G977N Build/LMY48Z; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36",
"uuid":"9ad228d6-b05a-4772-a69d-390c3ed3641e",
"battery-level":"0.98",
"battery-state":"3",
"syscmp-time":"1619000613000",
"rom-version":"beyond1qlteue-user 5.1.1 LMY48Z 500210421 release-keys",
"terms-accepted":"1",
"newbie":"1",
"reach":"1",
"app-state":"0",
"act-code":"1626490715",
"act-timestamp":"1626490716",
"Content-Type":"application/x-www-form-urlencoded; charset=utf-8",
"Accept-Encoding":"gzip, deflate",
"Connection":"Keep-Alive",
"session-info":"dfK7qegtd182Vj2rpxohKDCSDlt7FbFUA8M0dW3ysKTxt3DXh2MDojwoPOF3lKR8tAn2A573PaC1MqLaVBNk9rKWS5BuztMMMHeNU1wOuvx+ZT6OnT68u7NsL1TVDWrO",
"Host":"api.douguo.net",}
data = {
'client':'4',
'_session':'1626490720101351564342922218',
'type':'0',
'keyword':'土豆',
'order':'3',
'_vs':'11104',
'auto_play_mode':'2',}
url = 'https://api.douguo.net/recipe/v2/search/0/20'
response = requests.post(url=url,headers=headers,data=data)
index_response_dict = json.loads(response.text)
for item in index_response_dict['result']['list']:
if item['type'] == 13:
items = {}
items['user_name'] = item['r']['an']
items['caibu_name'] = item['r']['n']
items['shicai_id'] = item['r']['id']
items['conner'] = item['r']['cookstory'].replace('\n','').replace(' ','')
print(items) 学习学习 {:5_95:} 他 整的不错 {:5_109:} {:5_102:} {:10_254:} {:5_106:} hh 网页解析还没学好 模拟器的元素怎么看 234657812 发表于 2021-7-19 00:29
模拟器的元素怎么看
我图片上面有标志 wcq15759797758 发表于 2021-7-19 11:15
我图片上面有标志
VIP大佬 我觉得很赞 有没有模拟器的操作手册 cosmos3919 发表于 2021-7-22 14:09
有没有模拟器的操作手册
B站视频有很多
页:
[1]