Skip to content

Monitor book prizes for some italian, english, and german online bookshops.

License

Notifications You must be signed in to change notification settings

andrea-petrocchi/monitorbookprices

Repository files navigation

monitorbookprices

Monitor book prices for some italian, english, and german online bookshops.

Installation

We recommend using the provided environment environment.yml to set up a Python environment using mamba environment with the necessary dependencies. Once the environment is installed, one need to activate it before using it (i.e., before running python scripts and notebooks). This is done via

mamba activate monitor

Run the following command to install the package (after having activated the environment):

pip install .

geckodriver

To scrape osiander we use Selenium WebDriver. To use it correctly, we need the web browser engine GeckoDriver. We summarize here the steps to install GeckoDriver:

  1. Download the latest release of GeckoDriver from here.
  2. Extract the tarball with tar -xvzf geckodriver*.
  3. Make it executable with chmod +x geckodriver.
  4. Move the executable into a folder in PATH. Examples are:
    • mv geckodriver <path_to_conda_environment>/bin if you have a conda/mamba environment setup.
    • sudo mv geckodriver /usr/local/bin (su priviliges needed)

Development

pip install -e .

Pre-commits

pip install .[pre-commit,testing]  # install extra dependencies. For zsh use .'[pre-commit,testing]'
pre-commit install  # install pre-commit hooks

Tests

pytest -v # discover and run all tests

Supported websites:

About

Monitor book prizes for some italian, english, and german online bookshops.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages