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

[TikTok] Add support #6708

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Conversation

CasualYT31
Copy link
Contributor

@CasualYT31 CasualYT31 commented Dec 22, 2024

This PR adds support for TikTok slideshows.

List of supported URL formats:

  • /photo/
  • /video/
  • vm.tiktok.com
  • vt.tiktok.com
  • /t/
  • www.tiktokv.com/share/video
  • User profiles (tiktok.com/@username)

I haven't performed extensive testing yet so there could well be edge cases that aren't covered by the extractor as it stands right now. I have tested with cookies, however, and I am able to extract photos from private accounts (as well as detect when cookies are required to extract photo URLs).

Closes: #3061
Closes: #4177
Closes: #5646
Closes: #6878

gallery_dl/text.py Outdated Show resolved Hide resolved
test/results/tiktok.py Outdated Show resolved Hide resolved
@CasualYT31

This comment has been minimized.

@CasualYT31 CasualYT31 requested a review from mikf December 23, 2024 17:28
},
{
"#url" : "https://www.tiktok.com/@chillezy",
"#comment" : "User profile",
Copy link
Contributor Author

@CasualYT31 CasualYT31 Dec 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should admit that user profile extraction can be a tiny bit flakey. Very occasionally yt-dlp will fail to extract user profile information and there's not a lot gallery-dl can do about it. Is it okay to keep these tests in, or should they be skipped?

@CasualYT31
Copy link
Contributor Author

Hi @mikf, do you have any outstanding feedback for this PR? Otherwise it's ready for merging now. I've been testing this for a few weeks now and I haven't run into any issues.

@idanyekutiel
Copy link

Would be nice to have this feature!

@Jalenzzz
Copy link

bump

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