Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add webdriver-based fetcher to avoid Error 403 and some other small improvements #34

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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.

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.

None yet

1 participant