mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-20 01:34:55 +08:00
pc_抖音破解
This commit is contained in:
parent
b391e9ed08
commit
111de2f4b0
@ -1,4 +1,4 @@
|
|||||||
from douyin_search import get_ttwid, get_ac_nonce
|
from douyin_search import get_ttwid, get_ac_nonce, get_ac_signature
|
||||||
from urllib.parse import quote
|
from urllib.parse import quote
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
@ -1007,7 +1007,8 @@ for search_keyword in keyword_list:
|
|||||||
print(search_keyword)
|
print(search_keyword)
|
||||||
encoded_text = quote(search_keyword)
|
encoded_text = quote(search_keyword)
|
||||||
__ac_nonce = get_ac_nonce(encoded_text)
|
__ac_nonce = get_ac_nonce(encoded_text)
|
||||||
ttwid = get_ttwid(__ac_nonce, encoded_text)
|
__ac_signature = get_ac_signature(encoded_text)
|
||||||
|
ttwid = get_ttwid(__ac_nonce, __ac_signature, encoded_text)
|
||||||
url = f"https://www.douyin.com/aweme/v1/web/discover/search/?device_platform=webapp&aid=6383&channel=channel_pc_web&" \
|
url = f"https://www.douyin.com/aweme/v1/web/discover/search/?device_platform=webapp&aid=6383&channel=channel_pc_web&" \
|
||||||
f"search_channel=aweme_user_web&keyword={encoded_text}&search_source=switch_tab&" \
|
f"search_channel=aweme_user_web&keyword={encoded_text}&search_source=switch_tab&" \
|
||||||
f"query_correct_type=1&is_filter_search=0&from_group_id=&offset=0&count=10&pc_client_type=1&" \
|
f"query_correct_type=1&is_filter_search=0&from_group_id=&offset=0&count=10&pc_client_type=1&" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user