Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE_REQUEST] - Playlists #963

Open
upintheairsheep opened this issue Oct 19, 2022 · 5 comments
Open

[FEATURE_REQUEST] - Playlists #963

upintheairsheep opened this issue Oct 19, 2022 · 5 comments

Comments

@upintheairsheep
Copy link

Add support for getting videos and info from playlists on tiktok. see https://www.tiktok.com/t/ZTRaoVFnx/

@davidteather
Copy link
Owner

That url just redirects me to tiktok.com without any special page on it

@wu5bocheng
Copy link
Contributor

wu5bocheng commented Jul 29, 2024

Its like this place down the description

image

Here is a sample curl trough https://www.tiktok.com/api/user/playlist/

curl 'https://www.tiktok.com/api/user/playlist/?WebIdLastTime=1721670374&aid=1988&app_language=en&app_name=tiktok_web&browser_language=en-US&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%2F126.0.0.0%20Safari%2F537.36&channel=tiktok_web&cookie_enabled=true&count=20&cursor=0&data_collection_enabled=true&device_id=7394517784846140971&device_platform=web_pc&focus_state=false&from_page=user&history_len=8&is_fullscreen=false&is_page_visible=true&odinId=7364665798018073606&os=windows&priority_region=&referer=https%3A%2F%2Fwww.tiktok.com%2F%40brkicks&region=US&root_referer=https%3A%2F%2Fwww.tiktok.com%2Fsearch%3Fq%3Dmaleinfluencer%2520swimming%2520beachlife%2520workout%2520outdoorsports%2520traveling%2520activelifestyle%2520fashion&screen_height=960&screen_width=1707&secUid=MS4wLjABAAAAodn-y2y7U_cJVNO6isNOrcYJHsvoPCz5bIg3IdUDNa4S1hABiA4w2Ds-bo0kkUV7&tz_name=America%2FNew_York&user_is_login=true&webcast_language=en&msToken=Fne9GLNR2xr0qOe34KWu7mtUEFyVNlCdL27O92drv-3Ep5Ms_e3E5eZN4OM7M8ci9lqGuwGS54SWwANTMQ4SMp8ceAh4ruEgmP5XNBTXS1HoXKTVMQpmXayZWVetXq5K1ZWewnZzcoDX-Gdc85TxpsV0Lw==&X-Bogus=DFSzswVOEKkANnnVtv0SWumBqjoq&_signature=_02B4Z6wo00001xQrQWgAAIDDTHafvZulnAsUK0XAAKO3bc' \
  -H 'accept: */*' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'cookie: ' \
  -H 'priority: u=1, i' \
  -H 'referer: https://www.tiktok.com/@brkicks' \
  -H 'sec-ch-ua: "Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Windows"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-origin' \
  -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'

@wu5bocheng
Copy link
Contributor

I have added a draft PR to support Playlist Scrapy: #1177 @davidteather FYI

@wu5bocheng
Copy link
Contributor

please close this, already merged in #1177 @upintheairsheep

@LukasOpp
Copy link

LukasOpp commented Jan 2, 2025

I just created pull request #1207 to implement playlists as a class with a .videos() method to retrieve playlist videos which was not possible in the previous implementation in #1177.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants