Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flickr access-token is not working #109

Closed
wankio opened this issue Sep 17, 2018 · 8 comments
Closed

Flickr access-token is not working #109

wankio opened this issue Sep 17, 2018 · 8 comments

Comments

@wankio
Copy link
Contributor

wankio commented Sep 17, 2018

flickr: An unexpected error occurred: TypeError - 'int' object does not support item deletion. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
flickr: Traceback
Traceback (most recent call last):
  File "c:\users\gen31uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\job.py", line 64, in run
    for msg in self.extractor:
  File "c:\users\gen31uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\extractor\flickr.py", line 28, in items
    info = self.data()
  File "c:\users\gen31uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\extractor\flickr.py", line 126, in data
    self._first = next(self._generator)
  File "c:\users\gen31uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\extractor\flickr.py", line 385, in _pagination
    del obj["page"]
TypeError: 'int' object does not support item deletion
@mikf
Copy link
Owner

mikf commented Sep 17, 2018

Just to be absolutely sure:
You did gallery-dl oauth:flickr, authorized gallery-dl and got a message like this:

Your Access Token and Access Token Secret are

foo
bar

Put these values into your configuration file as
'extractor.flickr.access-token' and
'extractor.flickr.access-token-secret'.

Example:
{
    "extractor": {
        "flickr": {
            "access-token": "foo",
            "access-token-secret": "bar"
        }
    }
}

and then copy-pasted these two values into your config file?

Because it works perfectly fine for me (just tested with a test-account):

$ gallery-dl https://www.flickr.com/photos/flickr/albums/72157685387149525
/tmp/flickr/albums/72157685387149525 - …grapher Spotlight/flickr_35472684005.png
/tmp/flickr/albums/72157685387149525 - …grapher Spotlight/flickr_33882658505.png
...

@wankio
Copy link
Contributor Author

wankio commented Sep 17, 2018

yeah, i do like what u said in guide
'

login and Create an App in Flickr's App Garden
click "APPLY FOR A NON-COMMERCIAL KEY"
fill out the form with a random name and description and click "SUBMIT"
copy Key and Secret and put them in your configuration file

'

i also

'

login and visit Tumblr's Applications section
click "Register application"
fill out the form: use a random name and description, set https://example.org/ as "Application Website" and "Default callback URL"
solve Google's "I'm not a robot" challenge and click "Register"
click "Show secret key" (below "OAuth Consumer Key")
copy your OAuth Consumer Key and Secret Key and put them in your configuration file

'
my app is Public, Active
'
"access-token": " 7bf6d8a0bb2a0a155d1d14bcde4bxxxx",
"access-token-secret": "8722f6f63ed8xxxx",
"metadata": false,
"size-max": null
'

@mikf
Copy link
Owner

mikf commented Sep 17, 2018

These instructions are to register new Flickr and Tumblr applications to get your own api-key and api-secret. Access Tokens and Secrets are another thing entirely.

To get an acces-token and access-token-secret pair, which is kind of like being logged in, you just need to do gallery-dl oauth:flickr or gallery-dl oauth:tumblr.

mikf added a commit that referenced this issue Sep 17, 2018
@wankio
Copy link
Contributor Author

wankio commented Sep 17, 2018

oh yes, my fault :) so i read several times, i see what i'm missed is oauth:flickr that give gallery-dl permission :)

ty

@wankio
Copy link
Contributor Author

wankio commented Sep 17, 2018

  • can it support more category name ?
    because sometime if i just use only album link
    my level 1 folder only have None None
"filename": "{title}__{name}.{extension}",
"directory":["Flickr","{user[username]} {user[nsid]} ","{album[ownername]}__{album[title]}__{album[id]}"],

@mikf
Copy link
Owner

mikf commented Sep 17, 2018

my level 1 folder only have None None

That's to be expected, since there is no {user[username]} or {user[nsid]} for albums, but you can substitute these with {album[ownername]} and {album[owner]} respectivly.
As far as I know, Flickr albums are just collections of a user's own images, so the album owner is always the user himself.

can it support more category name ?

What do you mean by that? {user[...]} metadata for albums?

@wankio
Copy link
Contributor Author

wankio commented Sep 18, 2018

yes, user[...] metadata for albums link
and why photo link have less metadata than flickr.com/photos/username or album link when i'm using -K..

it's recommended to using photostream link instead of album/photo link for ripping ?

thank

@mikf mikf closed this as completed in 8080071 Sep 29, 2018
@mikf
Copy link
Owner

mikf commented Sep 29, 2018

and why photo link have less metadata than flickr.com/photos/username or album link when i'm using -K..

Because I didn't want to use more API calls than necessary. Use flickr.metadata if you want more.

it's recommended to using photostream link instead of album/photo link for ripping ?

Yes, if you want all images from a single user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants