-
-
Save jasondavis/0baf3cd97b2ab4becc64eedacadc7ed8 to your computer and use it in GitHub Desktop.
AutoHotKey script to automatically download TikTok videos that are copied to your clipboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#Persistent | |
; Requires yt-dlp | |
; You might need to change the '$HOME' and '$USERNAME' if they dont work | |
; $HOME = 'C:\Users\YourUsername'; $USERNAME is your windows username | |
ClipChanged(Type) { | |
If InStr(Clipboard, "https://www.tiktok.com/@") | |
Or InStr(Clipboard, "https://tiktok.com/@") { | |
Run, % "yt-dlp --config-location $HOME\.config\yt-dlp.tiktok.conf " Clipboard, , Min | |
} | |
} | |
Try { | |
Run, yt-dlp, , Min | |
} Catch { | |
If !FileExist("yt-dlp.exe") { | |
ExitApp, 1 | |
} | |
} | |
OnClipboardChange("ClipChanged") | |
Return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-w | |
-c | |
--sleep-requests 1 | |
--windows-filenames | |
--embed-metadata | |
--embed-thumbnail | |
--embed-info-json | |
--remux-video mkv | |
--download-archive "$HOME\.config\yt-dlp.tiktok.archive" | |
--output "C:\Users\$USERNAME\Videos\TikTok\%(uploader)s - %(title)s (%(duration)ss) [%(resolution)s] [%(extractor)s-%(id)s].%(ext)s" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment