We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The requests session is currently hardcoded:
flickrapi/flickrapi/auth.py
Line 143 in c389ce9
Easiest change would be to allow the user to specify the session in FlickrAPI() and pass it to OAuthFlickrInterface.
FlickrAPI()
OAuthFlickrInterface
The the user could configure exponential backoff themselves:
from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry
# Requests configurations max_retries = Retry( # try again after 5, 10, 20, 40, 80 seconds # for specified HTTP status codes total=5, backoff_factor=10, status_forcelist=[403, 408, 429, 500, 502, 503, 504], ) session = requests.Session() session.mount("https://", HTTPAdapter(max_retries=max_retries))
etc.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue
The requests session is currently hardcoded:
flickrapi/flickrapi/auth.py
Line 143 in c389ce9
Potential Solution
Easiest change would be to allow the user to specify the session in
FlickrAPI()
and pass it toOAuthFlickrInterface
.The the user could configure exponential backoff themselves:
etc.
Additional context
The text was updated successfully, but these errors were encountered: