Download image galleries and collections from 100+ sites.
This skill triggers when user wants to download images from Reddit, Twitter, Instagram, Pixiv, Danbooru, or other supported sites.
StepActionWhy1INSTALLInstall gallery-dl via pip2AUTHConfigure authentication if needed3EXTRACTDetermine site and URL type4DOWNLOADFetch images with options5ORGANIZESave to appropriate folder
bash
pip install gallery-dl
text
├── Download from Reddit
│ └── Use: gallery-dl "https://www.reddit.com/r/subreddit/"
│
├── Download from Twitter/X
│ └── Use: gallery-dl "https://twitter.com/user/media"
│
├── Download from Pixiv
│ └── Use: gallery-dl "https://www.pixiv.net/users/12345"
│
├── Download from Danbooru
│ └── Use: gallery-dl "https://danbooru.donmai.us/posts?tags=tag"
│
├── Batch download
│ └── Use: gallery-dl "URL" --limit 10
│
└── Custom filename
└── Use: gallery-dl "URL" -f "{id}.{extension}"
Reddit, Twitter/X, Instagram, Tumblr, Pixiv, Danbooru, Gelbooru, Furbooru, ArtStation, DeviantArt, Flickr, Newgrounds, HBO, TikTok, YouTube, and 100+ more.
Full list: https://github.com/mikf/gallery-dl#supported-services
bash
gallery-dl "URL" [options]
bash
# Download from Reddit
gallery-dl "https://www.reddit.com/r/wallpapers/"
# Download to specific folder
gallery-dl "URL" -D /path/to/folder
# Download specific user's posts
gallery-dl "https://twitter.com/username/media"
# Download from Pixiv artist
gallery-dl "https://www.pixiv.net/users/12345"
# Download from Danbooru tags
gallery-dl "https://danbooru.donmai.us/posts?tags=cat"
FlagDescriptionDefault-D, --directory PATHDownload location./gallery-dl-f, --filename FORMATFilename template{id}.{extension}--range RANGEDownload range (e.g., 1-10)all--limit NLimit number of downloadsno limit--username USERLogin username---password PASSLogin password---netrcUse .netrc for authfalse
bash
# Default (id.extension)
gallery-dl "URL" -f "{id}.{extension}"
# By date (YYYY/id.extension)
gallery-dl "URL" -f "{date:%Y}/{id}.{extension}"
# By site (site/id.extension)
gallery-dl "URL" -f "{domain}/{id}.{extension}"
# Original filename
gallery-dl "URL" -f "/O"
Many sites need login. Choose one method:
bash
gallery-dl "URL" --username USER --password PASS
Create ~/.netrc:
text
machine twitter.com
login username
password password
Create ~/.config/gallery-dl/config.json:
json
{
"extractor": {
"twitter": {
"username": "user",
"password": "pass"
},
"pixiv": {
"username": "user",
"password": "pass"
}
}
}
bash
# Reddit subreddit
gallery-dl "https://www.reddit.com/r/earthporn/" -D ./earthporn
# Twitter user media
gallery-dl "https://twitter.com/elonmusk/media" -D ./elon
# Pixiv artist
gallery-dl "https://www.pixiv.net/users/12345" -D ./pixiv
# Danbooru tag
gallery-dl "https://danbooru.donmai.us/posts?tags=cat" -D ./cat
# Download only first 10
gallery-dl "URL" --limit 10
# Download range
gallery-dl "URL" --range 1-50
pip install gallery-dlgallery-dl --versionTaskCommandDownload Redditgallery-dl "https://www.reddit.com/r/sub/"Download Twittergallery-dl "https://twitter.com/user/media"Download Pixivgallery-dl "https://www.pixiv.net/users/12345"Custom foldergallery-dl "URL" -D ./folderLimit 10gallery-dl "URL" --limit 10Custom namegallery-dl "URL" -f "{id}.{extension}"