Skip to content

Conversation

@am1ter
Copy link

@am1ter am1ter commented Mar 27, 2023

This pull request restores functioning of the library.

In December 2022, the data provider added token protection to their website. Therefore, it is impossible to use the default GET request to receive meta data. To fix this, I made the following changes:

  • Added a new fetcher that uses Selenium webdriver to download meta data. To obtain all the necessary information, the script parses two pages. I used some code from Issue 33.
  • Replaced the existing testing framework with the Python unittest library and added a Dockerfile to run tests in Docker containers.

I tested the updated version of the library with Python 3.7 to 3.11, and everything works well.

As modern versions of Numpy and Pandas do not support Python 3.7, I added additional code to the setup.py file to avoid dropping support for Python 3.7. Also I updated changelog and readme file.

am1ter added 3 commits March 24, 2023 07:47
Use unittest from standart lib as main lib for testing
Move .py file with fixtures to subdir to avoid relative import (tests)
Update requierements: use newer versions of numpy and pandas
Fix bug with depreciated module collections.Container
Use new fetcher for meta data downloading
Sort imports in export.py module
Update requirements.txt
Bump the version to 5.1.2
Improve caching of the meta data fetcher
Add Dockerfile for isolated testing
Suppress webdriver log messages
Update setup.py and requirements.txt
Update readme and changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant