Windows 11/10 · Login required · Full-resolution media
gallery-dl downloads full-resolution images and videos from Twitter/X timelines, media tabs, likes, and individual tweets. Cookie authentication is required since Twitter restricted API access.
--cookies-from-browser chrome to refresh the session.
Commands
gallery-dl --cookies-from-browser chrome "https://x.com/username/media"
gallery-dl --cookies-from-browser chrome "https://x.com/username/status/TWEET_ID"
gallery-dl --cookies-from-browser chrome "https://x.com/username"
gallery-dl --cookies-from-browser chrome "https://x.com/username/likes"
gallery-dl --cookies-from-browser chrome -d "C:\Images\Twitter" "https://x.com/username/media"
gallery-dl --cookies "C:\Tools\gallery-dl\twitter-cookies.txt" "https://x.com/username/media"
Config for Twitter/X
{
"extractor": {
"twitter": {
"cookies": "C:/Tools/gallery-dl/twitter-cookies.txt",
"videos": true,
"retweets": false,
"quoted": true,
"filename": "{author[name]}_{tweet_id}_{num}.{extension}",
"sleep-request": 1.0
}
}
}
videos: trueretweets: falsequoted: truesleep-request: 1.0FAQ
gallery-dl -U) to get the latest extractor fixes.--cookies-from-browser chrome.?format=jpg&name=orig to request original resolution. If you're still getting low-res images, update gallery-dl with gallery-dl -U — the extractor may have been updated to handle new URL formats.gallery-dl --image-filter "extension in ('jpg','png','webp','gif')" --cookies-from-browser chrome "URL". Or set "videos": false in your config.json Twitter section.