Closed b-kode closed 4 years ago
Hey, awesome that you're finding it useful!
Checking it out, I see that the link it's trying to download apparently starts with the characters '
. This looks like some kind of encoding issue.
Some Googling brought me to this answer on StackOverflow: https://stackoverflow.com/a/44203507
I've tried setting the right encoding and it does seem to resolve the issue. I'll publish a new version in a minute that should fix it!
Testing the new version now. Seems to work fine so far. Thanks for finding the encoding issue, I clearly overlooked the funny characters at the beginning of the url strings.
Just published the new version on PyPI, should work if you pip install --upgrade airbase
(the new version is 0.2.4). Glad it's working now, don't hesitate to give me a shout if you have any other issues!
Hi,
I very much like this tool to extract information from the Airbase database. Thanks for this. As a test, I was trying to select data from Belgium, for eg. O3 since 2018.
I tried both the download_to_file (my preference) and download_to_directory extensions.
Yet both fail at the point of 23/70. With the following error:
They do fail at the same URL, while this file can be downloaded via a browser.
To me it is not clear why this fails. I also tried with raise_for_status=False, but the problem persists.
Would it make sense that the download functions include a try error statement, allowing them to continue even though it fails to retrieve a file?
Or perhaps there is another way on how to address this?
Cheers, Matthias