mirror of
https://github.com/RustyRaptor/mal-scraper.git
synced 2026-12-03 23:45:20 -07:00
9d9dee86625ef708f1017aa22409bdf14eca4f0c
========
Overview
========
.. start-badges
.. list-table::
:stub-columns: 1
* - docs
- |docs|
* - tests
- |travis| |requires| |codecov| |codacy|
* - package
- |version| |wheel| |supported-versions| |supported-implementations|
.. |docs| image:: https://readthedocs.org/projects/mal-scraper/badge/?style=flat
:target: https://readthedocs.org/projects/mal-scraper
:alt: Documentation Status
.. |travis| image:: https://travis-ci.org/QasimK/mal-scraper.svg?branch=master
:alt: Travis-CI Build Status
:target: https://travis-ci.org/QasimK/mal-scraper
.. |requires| image:: https://requires.io/github/QasimK/mal-scraper/requirements.svg?branch=master
:alt: Requirements Status
:target: https://requires.io/github/QasimK/mal-scraper/requirements/?branch=master
.. |codecov| image:: https://codecov.io/github/QasimK/mal-scraper/coverage.svg?branch=master
:alt: Coverage Status
:target: https://codecov.io/github/QasimK/mal-scraper
.. |codacy| image:: https://img.shields.io/codacy/77e1509bdc184167864233483afefd00.svg?style=flat
:target: https://www.codacy.com/app/QasimK/mal-scraper
:alt: Codacy Code Quality Status
.. |version| image:: https://img.shields.io/pypi/v/mal-scraper.svg?style=flat
:alt: PyPI Package latest release
:target: https://pypi.python.org/pypi/mal-scraper
.. |wheel| image:: https://img.shields.io/pypi/wheel/mal-scraper.svg?style=flat
:alt: PyPI Wheel
:target: https://pypi.python.org/pypi/mal-scraper
.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/mal-scraper.svg?style=flat
:alt: Supported versions
:target: https://pypi.python.org/pypi/mal-scraper
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/mal-scraper.svg?style=flat
:alt: Supported implementations
:target: https://pypi.python.org/pypi/mal-scraper
.. end-badges
MyAnimeList web scraper is a Python library for gathering data for analysis.
Usage
=====
Use the [online documentation](https://mal-scraper.readthedocs.io/), and just::
pip install mal-scraper
Development
===========
After cloning, and creating a virtualenv, install the development dependencies::
pip install -e .[develop]
You should install Python interpreters 3.4, and 3.5 because tox will test on all of them. (Hints: `Linux <https://askubuntu.com/questions/125342/how-can-i-install-python-2-6-on-12-04>`_.)
To run the all tests run::
tox
- Tests will always mock requests to the internet. You can set the environment variable :code:`LIVE_RESPONSES=1` to properly test web scraping.
- Run tests faster using just :code:`py.test` (useful for intermediate development). However, tox must be run as it also tests documentation, additional style linting etc.
- You can look at coverage results inside `htmlcov/index.html`.
Note, to combine the coverage data from all the tox environments run:
.. list-table::
:widths: 10 90
:stub-columns: 1
- - Windows
- ::
set PYTEST_ADDOPTS=--cov-append
tox
- - Other
- ::
PYTEST_ADDOPTS=--cov-append tox
Description
Mirror of github.com/RustyRaptor/mal-scraper — MyAnimeList web scraper is a Python library for gathering data for analysis
406 KiB
0 Stars
1 Watchers
0 Forks
Languages
Python
100%