/rateyourmusic

Web scraper for RateYourMusic pages

Primary LanguagePythonMIT LicenseMIT

RateYourMusic

build status PyPI version

Metadata scraper RateYourMusic reviews.

Installation

pip install rateyourmusic

Alternatively, clone directly from master to run with the freshest bugs:

pip install git+https://github.com/fortes/rateyourmusic.git@master

Usage

>>> import rateyourmusic
>>> review = rateyourmusic.getAlbumReviewForRateYourMusicUrl('https://rateyourmusic.com/release/album/edan/beauty_and_the_beat/')
>>> print(review.average_rating)
3.72

Tests

There is one test, you can try it:

python -m unittest

Warnings

  • This was a quick hack for a small project, it may or may not work for you
  • Not all sites like having scrapers, use at your own risk
  • RateYourMusic/Sonemic is taking forever to create an API so this is the next best thing

License

MIT

Contributions

Please do