From 7d9b1893b2040e9fc3db82f47b6c006fb38f46c5 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 23 Oct 2020 12:07:35 +1300 Subject: [PATCH] Retry too many requests (#23) * Add 429 in retry list * Bump 0.3.3 -> 0.3.4 --- app_store_scraper/__version__.py | 2 +- app_store_scraper/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app_store_scraper/__version__.py b/app_store_scraper/__version__.py index ea39191..ded8a63 100644 --- a/app_store_scraper/__version__.py +++ b/app_store_scraper/__version__.py @@ -1,5 +1,5 @@ __title__ = "app-store-scraper" -__version__ = "0.3.3" +__version__ = "0.3.4" __description__ = "Single API ☝ App Store Review Scraper 🧹" __author__ = "Eric Lim" __url__ = "https://github.com/cowboy-bebug/app-store-scraper" diff --git a/app_store_scraper/base.py b/app_store_scraper/base.py index fcf919c..2da9b2f 100644 --- a/app_store_scraper/base.py +++ b/app_store_scraper/base.py @@ -112,7 +112,7 @@ def _get( params=None, total=3, backoff_factor=3, - status_forcelist=[404], + status_forcelist=[404, 429], ) -> requests.Response: retries = Retry( total=total,