Last active
February 6, 2019 06:16
-
-
Save kirkins/4fe94e0b70beb6ab4d48e25b07bc0d4c to your computer and use it in GitHub Desktop.
Extract telegram links from exported chat
This file contains 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
# run command below in the folder of Telegram Chat Export | |
lynx -dump -listonly *.html \ | |
| grep http \ | |
| uniq > /tmp/links \ | |
&& sed -i.bak '/t.me/d' /tmp/links | |
# Once links extracted, you can download all YouTube videos with | |
cat /tmp/links | grep youtu | xargs -L1 youtube-dl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment