Skip to content

Commit 477509c

Browse files
author
paul.marcombes
committed
get_google_trends: more retry and less concurrency
1 parent b463ab6 commit 477509c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bigfunctions/get_data/get_google_trends.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ code: | #python
4545
pytrends = TrendReq(hl='en-US', tz=360)
4646
pytrends.build_payload(keywords, cat=category, timeframe=timeframe, geo=geo, gprop=gprop)
4747
48-
sleeping_times = [2, 4, 8, 10]
48+
sleeping_times = [1, 3, 5, 7, 9, 11, 13, 15, 17, 21, 23, 25]
4949
for k, sleep_time in enumerate(sleeping_times):
5050
try:
5151
df = pytrends.interest_over_time()
@@ -61,4 +61,4 @@ code: | #python
6161
requirements: |
6262
pytrends
6363
cloud_run:
64-
max_instances: 10
64+
concurrency: 1

0 commit comments

Comments
 (0)