Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Test for presence of [email protected] file; continue if present
- if [ -f ./[email protected] ]; then
- twint --json --profile-full --resume $(cat [email protected]|tail -n1|tr '\" ' '\n'|sed -e '4!d' -e 's/,//') -u $@ -o [email protected] && tac @.json.tmp >>[email protected]
- else
- twint --json --profile-full -u $@ -o [email protected] && tac [email protected] >[email protected] && mkdir video && mkdir images
- fi
- # Download all images
- cat [email protected]|tr '\" ' '\n'|grep -o -w https://pbs.twimg.com/media/*.*g -|sed -e "s/$/\:orig/g"|wget -nc -i - -P ./images/
- # Download all video media
- cat [email protected]|grep "\"video\"\: 1"|tr '\" ' '\n'|grep $@/status|youtube-dl -o ./"video/%(id)s.%(ext)s" -i -a -
- # Delete temporary file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement