Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
buba-fetcher
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dbnomics-fetchers
buba-fetcher
Commits
9d1cc7a2
Commit
9d1cc7a2
authored
4 years ago
by
Bruno Duyé
Browse files
Options
Downloads
Plain Diff
Merge branch 'FixDownload' into 'master'
Fix download See merge request
!4
parents
6c3e0e1c
62c00844
No related branches found
No related tags found
1 merge request
!4
Fix download
Pipeline
#272535
passed with stage
in 21 minutes and 29 seconds
Changes
1
Pipelines
335
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
download.py
+2
-1
2 additions, 1 deletion
download.py
with
2 additions
and
1 deletion
download.py
+
2
−
1
View file @
9d1cc7a2
...
...
@@ -36,7 +36,7 @@ import requests
import
buba_common
as
bc
HELP_ON_TIMESERIES_URL
=
"
https://www.bundesbank.de/en/statistics/time-series-databases/
-/
help-on-the-time-series-databases
-750894
"
# noqa
HELP_ON_TIMESERIES_URL
=
"
https://www.bundesbank.de/en/statistics/time-series-databases/help-on-the-time-series-databases
/download-options
"
# noqa
DATASETS_URL
=
"
https://www.bundesbank.de/cae/servlet/StatisticDownload?its_fileFormat=Archive&mode=its
"
# noqa
TOPICS_URL
=
"
https://www.bundesbank.de/cae/servlet/StatisticDownload?its_fileFormat=Archive&mode=its&tree=
"
# noqa
STRUCTURE_URL
=
"
https://www.bundesbank.de/cae/servlet/StatisticDownload?metaDSI=
"
...
...
@@ -97,6 +97,7 @@ def download_topics(topics_url, topics_codes, target_dir: Path):
for
code
in
sorted
(
topics_codes
):
log
.
info
(
"
Downloading topic %r
"
,
code
)
topic_dir
=
topics_main_dir
/
code
print
(
topics_url
+
code
)
r
=
requests
.
get
(
topics_url
+
code
)
if
not
r
.
ok
:
log
.
error
(
"
A download error occurred, skipping topic %r...
"
,
code
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment