mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.93k stars 975 forks source link

[twitter][error] AuthorizationError: NSFW Tweet #6105

Closed seshat-media closed 2 months ago

seshat-media commented 2 months ago

Hi, I'm using 1.27.4-dev:2024.08.29 and still getting the error "AuthorizationError: NSFW Tweet". Am I doing something wrong with the login? passing username and password directly gave AuthenticationError: Login rejected as suspicious, so I've edited the config file as follows:

"extractor": { "twitter":{ "cookies": "C:/Users/flgei/gallery-dl/cookies.txt" }

is it missing something? Or is there something I can look for in cookies.txt to confirm the correct token is there?

Thanks so much for any guidance

mikf commented 2 months ago

Make sure your config file and cookies are actually getting loaded. Make sure your cookies file contains an auth_token entry for .x.com.

$ gallery-dl --verbose -C cookies.txt x.com/potus
...
[gallery-dl][debug] Configuration Files ['${HOME}/.gallery-dl.conf']
...
[twitter][debug] Loading cookies from 'cookies.txt'
seshat-media commented 2 months ago

Looks like I had just exported cookies incorrectly. Thank you!

Much appreciate you running this project and still helping folks, sent a few coffees