Closed smontanaro closed 2 years ago
My problem seems to be that I'm not really authenticating. I stumbled on an Authentication section in the wiki (not sure why I didn't see that before), but the prescription there doesn't work. I'm unable to create an AuthHandler instance.
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/tmp/ipykernel_77955/3000982355.py in <module>
----> 1 a = flickr_api.api.auth.AuthHandler()
~/miniconda3/envs/python39/lib/python3.9/site-packages/flickr_api/auth.py in __init__(self, key, secret, callback, access_token_key, access_token_secret, request_token_key, request_token_secret)
73 'oauth_version': "1.0",
74 'oauth_callback': callback,
---> 75 'oauth_nonce': oauth2.generate_nonce(),
76 'oauth_consumer_key': self.key
77 }
AttributeError: module 'oauth2' has no attribute 'generate_nonce'
It seems this code is not up-to-date with the oauth2 module. Maybe the example is missing something?
Stupidity on my part, I was pasting the auth url instead of the redirect url. :dodo:
Given this code:
when executed,
photo.ispublic
prints asTrue
for all returned photos. Given the value passed forprivacy_filter
they all beFalse
?