/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+git://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 will hopefully add an API some day and this will all be wasted effort

License

MIT

Contributions

Please do