You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Throttling value must be `0 < value <= 1`. This value throttles requests to a maxiumum of one request per `1 / value` seconds. Note that this value is a per-worker throttling, so applications with multiple workers may make more requests per second. Throttling value is [set by default to `0.8`](https://github.com/sergioteula/python-amazon-paapi/blob/master/amazon/paapi.py#L36) or one request per 1.25 seconds.
68
+
Throttling value must be `0 < value <= 1`. This value throttles requests to a maximum of one request per `1 / value` seconds. Note that this value is a per-worker throttling, so applications with multiple workers may make more requests per second. Throttling value is [set by default to `0.8`](https://github.com/sergioteula/python-amazon-paapi/blob/master/amazon/paapi.py#L36) or one request per 1.25 seconds.
69
69
70
-
from amazon.paapi import AmazonAPI
71
-
amazon = AmazonAPI(KEY, SECRET, TAG, COUNTRY, throttling=0.5) # Max one request per two seconds.
72
-
product = amazon.get_product('B01N5IB20Q')
73
-
print(product.title)
70
+
amazon = AmazonAPI(KEY, SECRET, TAG, COUNTRY, throttling=0.5) # Max one request every two seconds
0 commit comments