-
Notifications
You must be signed in to change notification settings - Fork 12
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
Preventing Google Photos API limit from being exceeded #92
Comments
Preventing Google Photos API limit from being exceeded #92
The solution is to store downloaded Google Photos API data once a day and then load it when needed. As we have Pandas on board I can use a simple DataFrame dump/load mechanism (Feather format seems to be fast and enough for this). The data will be downloaded at first run every day and then for the rest it will be loaded and reused. The problem is that photos download URLs are expiring but in that case I can refresh it when something like this happens (with two retries). With that refresh requests number will be maximum 2% of the 10k requests limit, leaving the rest for the initial download. This setting controls this behavior:
|
Fixed in #93 |
According to Google Photos API specification:
and
this issue(#89) I need to find a way how to minimize number of requests (currently the whole data is taken every frame refresh, 50 items every time /another Google limit/).
The text was updated successfully, but these errors were encountered: