Quote:
Originally Posted by goldensun87
I made my own guide detailing how I download TikTok profiles. It doesn't have visual steps like JD guides do, but I hope it will still be helpful.
Script: pastebin.com/ZbMUf5kS (copy code into notepad, save extension as .PS1 to convert to powershell)
If the link is not visible, it is a pastebin link, and the link ID is ZbMUf5kS.
|
This was
very helpful, thank you!!! I've made my own home brew solution to automating steps 7+ in your guide.
TikTok Video Downloader
Credit: Made with the help of ChatGPT lol, it's not perfect, and has gone through a few iterations, let me know if you have any issues with it and I'll see if I can tweak it.
Script Location:
pastebin.com/QG78NJ1C
This PowerShell script enables you to download TikTok videos from a specific user profile. It uses the yt-dlp command-line tool to download videos, and PowerShell to automate the process, and downloads all the videos into the username's folder.
The following are prerequisites for using the script:
Prerequisites
1: Operating System: Windows. The script is a PowerShell script, which is a Windows-based scripting language.
2: yt-dlp: This is a command-line tool that is used to download videos from YouTube.com and other video platforms. You can get it from the yt-dlp GitHub page. Download the Windows executable and place it in the C:\URLscrape directory on your machine.
3: Browser Extension: LinkClump ONLY (not open multiple URL's, logic built into script). This add-on is used to collect the URLs of the TikTok videos to download. Follow the steps in the provided JD instructions to configure this extension and collect the URLs. (Note: I use firefox).
4: Text Editor: Notepad++ or similar (I use Sublime with Powershell syntax). This is used to view and edit the PowerShell script if you need to.
How to Use
1: Follow the provided instructions in the original paste bin (steps 1-6, pastebin.com/ZbMUf5kS, credit: goldensun87) to use LinkClump to collect the URLs of the TikTok videos you want to download. Save the copied information in a text file named URLinput.txt and place it in the C:\URLscrape directory (copied information does not need filtered via Open Multiple URL's browser extension, script will handle).
2: Run the PowerShell script (copy code from green pastebin link above into a notepad file, and save file extension as ".PS1". If it's not already running with administrative privileges, it will relaunch itself with admin rights.
3: When prompted, enter the username of the TikTok profile you want to download videos from. The username should include the '@' symbol (e.g., @tiktokusername).
4: The script will filter the URLs in URLinput.txt to only include those that contain the specified username. It will save the filtered URLs in a new text file named output_{username}_{date}.txt in the C:\URLscrape directory, where {username} is the username you entered and {date} is the current date.
6: Each video file will be named after its title on TikTok in a folder named after the username provided. Default folder creation location is C:\URLscrape.
Notes
1:
The script assumes that all required files (URLinput.txt, yt-dlp.exe) and directories are in the C:\URLscrape directory. If you want to use a different directory, you will need to edit the script to change the paths / file names. You can name the C:\ directory whatever you want, same with the input file, you just need to update the script to match.
2: The script does not provide any progress indication (other than window beep when done) while yt-dlp is downloading videos. It may appear to be doing nothing, but as long as it hasn't exited, it's likely that yt-dlp is still downloading videos.
3: The script will pause after downloading the videos to keep the PowerShell window open. Press any key to exit.
4: I've not tested trying to download multiple profiles at once via the script.