Skip to content

Instantly share code, notes, and snippets.

@LudovicoPiero
Created August 3, 2023 03:23
Show Gist options
  • Save LudovicoPiero/3df8045d2705ff9162affbf7726bc4d3 to your computer and use it in GitHub Desktop.
Save LudovicoPiero/3df8045d2705ff9162affbf7726bc4d3 to your computer and use it in GitHub Desktop.
Twitter bulk downloader using nix and gallery-dl
#! /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