Skip to content

Commit

Permalink
小盈理财可以抓接口
Browse files Browse the repository at this point in the history
  • Loading branch information
luyishisi committed Jul 10, 2018
1 parent 485aae2 commit 1a16246
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@


import requests

url = "https://passport.fenqile.com/register/anti_fraud_anti_register.json"

payload = "mobile=17513502496"
headers = {
'cookie': "_SUTC=618dfbba2ad2fcf3fb0f3c04ee77a41f5e3b19aa; fs_tag=2F4B7A7AE32A09BECC0FB70E1194DABB; Hm_lvt_3592cc1c1f867054320b2773e17711c4=1531211609; Hm_lpvt_3592cc1c1f867054320b2773e17711c4=1531211609; tgw_l7_route=d9a5a79939d21eb92ffc092d933969f6; TY_SESSION_ID=943aed62-3e68-4b75-9776-dd008e7664d9; session=bkj6c7e0m4pe0ev4vmj6emom56; _fmdata=EgQ%2BJbnzf%2FdCq3jCjw8%2BZdQazlS7RlyA8tujTEXXu8Zm0p78yw8Qk2iSbxybBYwT0UIZM8%2FZIJdn8Q2YcmdtnVxHekxey%2B5VXeoeUOMK2lc%3D",
'origin': "https://passport.fenqile.com",
'accept-encoding': "gzip, deflate, br",
'accept-language': "zh-CN,zh;q=0.8",
'x-tingyun-id': "SGKPRcjfo2k;r=211716744",
'x-requested-with': "XMLHttpRequest",
'pragma': "no-cache",
'user-agent': "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36",
'content-type': "application/x-www-form-urlencoded; charset=UTF-8",
'accept': "application/json, text/javascript, */*; q=0.01",
'cache-control': "no-cache",
'authority': "passport.fenqile.com",
'referer': "https://passport.fenqile.com/register.html?ad_tag=WWW.MAIN.HEADER.REGISTER",
'postman-token': "8bf54840-d9cd-58da-b63b-15fb5e684fb8"
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

"""
接口失败,不能越过短信
{"retcode":0,"retmsg":"ok","is_anti_register":0,"anti_register_msg":"","anti_register_code":0}
{"retcode":0,"retmsg":"ok","is_anti_register":0,"anti_register_msg":"","anti_register_code":0}
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import requests

url = "https://www.xiaoying.com/user/apiCheckMobile"

querystring = {"app_ver":"2"}

payload = "mobile=17513502495&_fromAjax_=1&_csrfToken_=d41d8cd98f00b204e9800998ecf8427e"
headers = {
'cookie': "source=10001; Hm_lvt_6a5064ae576aec13acf46a38ed77e29d=1531213525; Hm_lpvt_6a5064ae576aec13acf46a38ed77e29d=1531213530; uuid=139223000214405229; _no_report=0; captchaKey=3903205b4477af1314e",
'origin': "https://www.xiaoying.com",
'accept-encoding': "gzip, deflate, br",
'accept-language': "zh-CN,zh;q=0.8",
'x-requested-with': "XMLHttpRequest",
'pragma': "no-cache",
'user-agent': "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36",
'content-type': "application/x-www-form-urlencoded; charset=UTF-8",
'accept': "application/json, text/javascript, */*; q=0.01",
'cache-control': "no-cache",
'authority': "www.xiaoying.com",
'referer': "https://www.xiaoying.com/user/register",
'postman-token': "9dcaef18-701b-04d3-2347-4f32d0463101"
}

response = requests.request("POST", url, data=payload, headers=headers, params=querystring)

print(response.text)

# {"ret":0,"msg":"not exist"}

0 comments on commit 1a16246

Please sign in to comment.