Closed AAndyProgram closed 1 year ago
Works on my machine :tm:
# without login
$ gallery-dl https://twitter.com/kikonoma_tmhmkt/status/1679805434688053248
/tmp/_/twitter/kikonoma_tmhmkt/1679805434688053248_1.jpg
/tmp/_/twitter/kikonoma_tmhmkt/1679805434688053248_2.jpg
# with login
$ gallery-dl -u USERNAME https://twitter.com/kikonoma_tmhmkt/status/1679805434688053248
/tmp/_/twitter/kikonoma_tmhmkt/1679805434688053248_1.jpg
/tmp/_/twitter/kikonoma_tmhmkt/1679805434688053248_2.jpg
I should probably just use the endpoints from https://github.com/mikf/gallery-dl/issues/4300 and make them somehow configurable ...
Works on my machine ™️
So cookies are no longer accepted? I don't use gallery-dl to download tweets. I'm using it in my program to get json responses. And the authorization to download each profile isn't too much? Maybe there is a way to use cookies instead of login/password?
I should probably just use the endpoints from #4300 and make them somehow configurable ...
I don't understand what argument(s) should I use in the command?
Without authorization (cookies):
[twitter][info] Requesting guest token
Have you tested it with nsfw content?
Works on my machine ™️
# without login $ gallery-dl https://twitter.com/kikonoma_tmhmkt/status/1679805434688053248 /tmp/_/twitter/kikonoma_tmhmkt/1679805434688053248_1.jpg /tmp/_/twitter/kikonoma_tmhmkt/1679805434688053248_2.jpg # with login $ gallery-dl -u USERNAME https://twitter.com/kikonoma_tmhmkt/status/1679805434688053248 /tmp/_/twitter/kikonoma_tmhmkt/1679805434688053248_1.jpg /tmp/_/twitter/kikonoma_tmhmkt/1679805434688053248_2.jpg
Confirmed that your example works fine without authorization. NSFW content (video) - no.
So cookies are no longer accepted?
Of course they are still accepted and should work the exact same as a user+pass login.
Have you tested it with nsfw content?
I have to admit that I did not, but it appears to work all the same:
$ gallery-dl -u USERNAME https://twitter.com/mightbecursed/status/1492954264909479936
/tmp/_/twitter/mightbecursed/1492954264909479936_1.jpg
When not logged in it throws an error, though:
$ gallery-dl https://twitter.com/mightbecursed/status/1492954264909479936
[twitter][info] Requesting guest token
[twitter][error] An unexpected error occurred: KeyError - 'core'. ...
Here's a NSFW video with cookies:
$ gallery-dl -C cookies-twitter-com.txt https://twitter.com/theobrobineMale/status/1481233909979684865
/tmp/_/twitter/theobrobineMale/1481233909979684865_1.mp4
With the changes from https://github.com/mikf/gallery-dl/commit/90231f2d5a2fa9ed08c5ed448a45cbe0e5fda12b, it'll use the old endpoint from 1.25.7 and before when logged in and you can choose between new and old API endpoint with the tweet-endpoint
option.
Command
Version 1.25.8. 1.25.7 works fine.