forked from zhaoboy9692/dailyanalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d624c3c
commit 800111d
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
------------------------------------------------- | ||
File Name: __init__.py | ||
Description: | ||
Author: XinCheng.Zhao | ||
Date: 2020/7/1 | ||
Email: [email protected] | ||
------------------------------------------------- | ||
Change Activity: | ||
2020/7/1: | ||
------------------------------------------------- | ||
""" | ||
__author__ = 'XinCheng.Zhao' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import hashlib | ||
import time | ||
|
||
import requests | ||
|
||
|
||
def get_token(ss): | ||
res = dict(k.split('=') for k in ss.split('&')) | ||
ss = '' | ||
for key in sorted(res.keys()): | ||
value = res[key] | ||
ss += value | ||
print(ss) | ||
ss += 'xgcpyh666' | ||
m = hashlib.md5() | ||
m.update(bytes(ss, encoding='utf8')) | ||
return m.hexdigest() | ||
|
||
|
||
headers = { | ||
'Host': 'www.95fenapp.com', | ||
'user-agent': 'Android8.1.0 google CPU_ABI armeabi-v7a CPU_ABI2 armeabi HARDWARE sailfish MODEL Pixel fen95/1.2.7 dc(Android,645f1789d2c3a1e0,huawei)', | ||
'fen95-host': 'default', | ||
} | ||
url_path = f'page=1&page_size=20&scene=1&scene_type=95fen_android_home_personal&sn=HomeRecommendList&sort=new×tamp={int(time.time() * 1000)}' # 1593611869091 | ||
url_path = url_path + '&token=' + get_token(url_path) | ||
url = f'https://www.95fenapp.com/api_goods/list/v3.0?{url_path}' | ||
print(url_path) | ||
response = requests.get(url, headers=headers) | ||
|
||
print(response.text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Java.perform(function () { | ||
// var comma = Java.use('com.ninetyfive.commonnf.c.b.a'); | ||
// comma.a.overload('java.lang.String').implementation = function (a1) { | ||
// var res = this.a(a1); | ||
// console.log(a1) | ||
// console.log(res) | ||
// return res; | ||
// } | ||
|
||
var str = Java.use('java.lang.String'); | ||
var MessageDigest = Java.use('java.security.MessageDigest'); | ||
MessageDigest.digest.overload(('[B')).implementation = function (a1) { | ||
var res = this.digest(a1); | ||
console.log(str.$new(a1)) | ||
return res; | ||
} | ||
|
||
}) | ||
//1593611840606xgcpyh666 | ||
//1593611868915xgcpyh666 | ||
//120195fen_android_home_personalHomeRecommendListnew1593611869091xgcpyh666 | ||
//120195fen_android_home_personalHomeRecommendListnew1593611840872xgcpyh666 | ||
//120195fen_android_home_personalHomeRecommendListnew1593612962422xgcpyh666 | ||
//page+page_size+scene_type+sn+sort+timestamp+xgcpyh666 |