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)