Skip to content

Commit

Permalink
Using yt-dlp directly
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Jan 19, 2025
1 parent 5bfeafb commit 069ef5f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tiktok/download-all-videos.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

TikTok may or may not be banned in the USA within the next 24 hours or so. Here's a pattern you can use to download all of the videos from a specific account.

## Using yt-dlp directly

After first publishing this TIL I found out you can point `yt-dlp` directly at an account page and it will download all videos for you:

yt-dlp 'https://www.tiktok.com/@username_goes_here' -o "downloads/%(title)s-%(id)s.%(ext)s"

The rest of this TIL describes a more complex method.

## Scrape the list of video URLs

I used a variant of my [Twitter scraping trick](https://til.simonwillison.net/twitter/collecting-replies). Start by loading up a profile page - like [https://www.tiktok.com/@ilgallinaio_special](www.tiktok.com/@ilgallinaio_special) - in Firefox or Chrome or Safari.
Expand Down

0 comments on commit 069ef5f

Please sign in to comment.