TikTok-Api icon indicating copy to clipboard operation
TikTok-Api copied to clipboard

_ The URL signature calculation of signature uses get_ acrawler. Py inside_ get_ Acrawler?

Open wuliao6688 opened this issue 4 years ago • 5 comments

I see a lot of garbled code in it, and the JS code can't work normally

wuliao6688 avatar Jan 26 '22 15:01 wuliao6688

It should still work properly, it’s just obfuscated js, this one might be less obfuscated on line 24

https://github.com/drawrowfly/tiktok-scraper/blob/master/src/helpers/Signature.ts

davidteather avatar Jan 26 '22 15:01 davidteather

它应该仍然可以正常工作,它只是混淆了 js,这个可能在第 24 行被混淆了

https://github.com/drawrowfly/tiktok-scraper/blob/master/src/helpers/Signature.ts

URL composition, members have those, can you give me some advice?

wuliao6688 avatar Jan 26 '22 16:01 wuliao6688

The URL could look like

https://api.Tiktok.com/some/path?With_url_params=True...

This is just an example it's the full url and url params

davidteather avatar Jan 26 '22 16:01 davidteather

1 2

https://us.tiktok.com/api/commit/follow/user/?aid=1988&app_language=zh-Hant-TW&app_name=tiktok_web&battery_info=0.58&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=Win32&browser_version=5.0%20%28Windows%20NT%2010.0%3B%20Win64%3B%20x64%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F97.0.4692.99%20Safari%2F537.36&channel=tiktok_web&channel_id=0&cookie_enabled=true&device_id=7044877592931976705&device_platform=web_pc&focus_state=true&from=18&fromWeb=1&from_page=user&from_pre=0&history_len=2&is_fullscreen=false&is_page_visible=true&os=windows&priority_region=&referer=&region=US&screen_height=900&screen_width=1440&sec_user_id=MS4wLjABAAAAYQIn0ghGQeUMmuqngrxATRDvKvq8dksgQBjXfrOdFo6wdO3DGbciDey2TfJE6EAR&type=1&tz_name=America%2FChicago&user_id=7035930273985479685&webcast_language=zh-Hant-TW&msToken=9ZVRfvLh5KCA9fRwcMTx5ysMVMj7H45hx2NXcHnbY9e1jcESeY2W74Pg3yyBDNFWV8FiPTkZKizt9BhfdgLhahVygTko7rZsISzU8zN408oycsxLlALrDRHd5mW-jBPFsda-dQ==&X-Bogus=DFSzs3fLzhXANxVYSLIiPRKeej0y&_signature=_02B4Z6wo00001j7htJQAAIDDQG3qaCLmgBY-4dgAAO5X40

If I use the above URL, I can't calculate the same result as tiktok using your JS code

@davidteather

wuliao6688 avatar Jan 26 '22 16:01 wuliao6688

Use V6

davidteather avatar Aug 08 '23 22:08 davidteather