Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Observatoire
observatoire-scripts
Commits
a39703bc
Commit
a39703bc
authored
Nov 09, 2020
by
Pierre Dittgen
Browse files
speed up siren info fetching
parent
2c80a336
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/download/siren_info.py
View file @
a39703bc
...
...
@@ -87,7 +87,7 @@ def main():
siren
=
line
.
strip
()
if
siren
:
# delay to avoid 429 "Too many requests"
time
.
sleep
(
1
)
time
.
sleep
(
0.2
)
res
=
get_coords_by_siren
(
siren
)
if
res
[
'status'
]
==
'err'
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment