Created
August 3, 2023 03:23
-
-
Save LudovicoPiero/3df8045d2705ff9162affbf7726bc4d3 to your computer and use it in GitHub Desktop.
Twitter bulk downloader using nix and gallery-dl
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
#! /usr/bin/env nix-shell | |
#! nix-shell -i bash -p gallery-dl | |
username='username_here' | |
password='password_here' | |
twitter_url='https://twitter.com/' | |
list_username=("username1" "username2") | |
for item in "${list_username[@]}"; do | |
echo "Downloading $item" | |
cmd="$twitter_url$item -u $username -p $password" | |
echo "Running $cmd" | |
gallery-dl $cmd | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment