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

Can't download TikTok photo slideshows #6878

Closed
Jalenzzz opened this issue Jan 25, 2025 · 6 comments · Fixed by #6708
Closed

Can't download TikTok photo slideshows #6878

Jalenzzz opened this issue Jan 25, 2025 · 6 comments · Fixed by #6708

Comments

@Jalenzzz
Copy link

For like maybe a week now I haven't been able to download TikTok photo posts like https://www.tiktok.com/@username/photo/123456789

When I try to download it returns [gallery-dl][error] Unsupported URL , I've tried with cookies, and without, both failed. Video posts download just fine though and I couldn't find any recent issues on matter on the issues page.

@CasualYT31
Copy link
Contributor

CasualYT31 commented Jan 26, 2025

@Jalenzzz You've seen the PR that'll add support for TikTok photos. If you don't want to wait for it to get merged, you can install my fork using: pip install --upgrade https://github.com/CasualYT31/gallery-dl-tiktok-support/archive/tiktok-support.zip. You can then use gallery-dl as normal.

@Jalenzzz
Copy link
Author

Oh! Will do that. Wasn't sure how to install your fork.

@Jalenzzz
Copy link
Author

Yo @CasualYT31 your fork was working but then I had to upgrade gallery-dl and then upgrade to your fork and I'm back to getting unsupported URL errors for tiktok photo posts.

@CasualYT31
Copy link
Contributor

@Jalenzzz I rebased my fork onto the latest version of gallery-dl earlier today, you should just be able to use pip install --upgrade https://github.com/CasualYT31/gallery-dl-tiktok-support/archive/tiktok-support.zip to get what you want. Just realised I forgot to include install in the command I gave above. You might also have to force a clean reinstall using --force-reinstall.

@Devicetron
Copy link

I want to join your fork but I can't seem to get it working, so I have to write pip --force-reinstall --upgrade https://github.com/CasualYT31/gallery-dl-tiktok-support/archive/tiktok-support.zip ?

@CasualYT31
Copy link
Contributor

@Devicetron Try pip install --force-reinstall --upgrade https://github.com/CasualYT31/gallery-dl-tiktok-support/archive/tiktok-support.zip and let me know if that works.

mikf added a commit that referenced this issue Feb 25, 2025
* Add TikTok photo support

#3061
#4177

* Address linting errors

* Fix more test failures

* Forgot to update category names in tests

* Looking into re issue

* Follow default yt-dlp output template

* Fix format string error on 3.5

* Support downloading videos and audio

Respond to comments
Improve archiving and file naming

* Forgot to update supportedsites.md

* Support user profiles

* Fix indentation

* Prevent matching with more than one TikTok extractor

* Fix TikTok regex

* Support TikTok profile avatars

* Fix supportedsites.md

* TikTok: Ignore no formats error

In my limited experience, this doesn't mean that gallery-dl can't download the photo post (but this could mean that you can't download the audio)

* Fix error reporting message

* TikTok: Support more URL formats

vt.tiktok.com
www.tiktok.com/t/

* TikTok: Only download avatar when extracting user profile

* TikTok: Document profile avatar limitation

* TikTok: Add support for www.tiktokv.com/share links

* Address Share -> Sharepost issue

* TikTok: Export post's creation date in JSON (ISO 8601)

* [tiktok] update

* [tiktok] update 'vmpost' handling

just perform a HEAD request and handle its response

* [tiktok] build URLs from post IDs

instead of reusing unchanged input URLs

* [tiktok] combine 'post' and 'sharepost' extractors

* [tiktok] update default filenames

put 'id' and 'num' first to ensure better file order

* [tiktok] improve ytdl usage

- speed up extraction by passing '"extract_flat": True'
- pass more user options and cookies
- pre-define 'TikTokUser' extractor usage

* [tiktok] Add _COOKIES entry to AUTH_MAP

* [tiktok] Always download user avatars

* [tiktok] Add more documentation to supportedsites.md

* [tiktok] Address review comments

---------

Co-authored-by: Mike Fährmann <mike_faehrmann@web.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants