Created
May 7, 2022 12:26
-
-
Save owen800q/342229586ddec777f42ea21bd16e8806 to your computer and use it in GitHub Desktop.
dmzj-coreToken
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
import time | |
import hashlib | |
import requests | |
# Get comic detail | |
core_token = '' | |
timestamp = str(int(time.time())) | |
comic_id = '59872' | |
hash_body = 'com.dmzj.manhua63:60:C8:3B:75:31:3F:35:EC:41:1D:85:60:63:EB:25{timestamp}+bYV5TaOBivUHM'.format(timestamp=timestamp) | |
md5_hash = hashlib.md5(hash_body.encode('utf-8')).hexdigest().upper() | |
right_part_core_token = [md5_hash[i:i+2] for i in range(0, len(md5_hash), 2)] | |
print(right_part_core_token) | |
core_token = timestamp + '|' + (':'.join(right_part_core_token)) | |
print('coreToken is ', core_token) | |
url = 'http://nnv4api.muwai.com/comic/detail/{id}?coreToken={coreToken}&app_channel=101_01_01_000&terminal_model=SM-G973N&version=3.7.10×tamp={timestamp}&_m=00135B63F6772E3A75BA95C07F5AF9D4&channel=Android&_debug=0'.format(id=comic_id, coreToken=core_token, timestamp=timestamp) | |
print(url) | |
response = requests.get(url, headers={ | |
'User-Agent': 'Android,DMZJ1,7.1.2' | |
}) | |
print(response.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment