MyAnimeList Web Scraper (mal-scraper) is a Python library for gathering a basic set of data about anime.
It can gather information about users from MAL including what anime they have watched and their ratings. It can discover users on MAL, and retrieve some very basic information about each anime. This information can be used to analyse data.
Installation & Usage
pip install mal-scraper
Please use the online documentation for to get started.
The library follows Semantic Versioning.
Please see the Contributing documentation page for full details, and especially look at the tips section.
After cloning, and creating a virtualenv, install the development dependencies:
pip install -e .[develop]
To run the all tests, skipping the python interpreters you don't have:
- Tests will always mock requests to the internet. You can set the environment
LIVE_RESPONSES=1to properly test web scraping.
- You can look at coverage results inside
Note, to combine the coverage data from all the tox environments run:
set PYTEST_ADDOPTS=--cov-append tox