Retrieve and parse some content from scaruffi.com.
Go to file
2020-11-05 22:16:57 +01:00
scaruffi main: fix API usage 2020-11-05 21:42:02 +01:00
.gitignore gitignore: ignore build directories 2020-11-05 19:04:18 +01:00
Pipfile dependencies: add twine in dev deps 2020-11-05 19:04:33 +01:00
Pipfile.lock dependencies: add twine in dev deps 2020-11-05 19:04:33 +01:00
pyproject.toml setup: add packaging files 2020-11-05 17:58:40 +01:00
README.md readme: update with install/usage info 2020-11-05 22:16:57 +01:00
setup.cfg setup: write install requirements in setup.cfg 2020-11-05 22:05:08 +01:00
setup.py setup: add packaging files 2020-11-05 17:58:40 +01:00

Scaruffi

Get some data from scaruffi.com from Python.

Piero Scaruffi has written a lot about rock music, jazz, classical, whether it is reviews or history. It is a valuable ressource for a variety of reasons and this script aims to make data fetching easier for personal usage.

Install

This library is available on PyPI:

pip install scaruffi

Usage

Check out the ScaruffiApi for all available methods.

from scaruffi.api import ScaruffiApi
api = ScaruffiApi()
api.get_ratings(1960)
# { 9.5: [ Release(title='Trout Mask Replica', ...

This module can also be used as a command-line tool:

scaruffi --help
scaruffi --musicians --offset 5555 --limit 5
# Mooseheart Faith
# Morbid Angel
# Morcheeba
# Morgan Fisher
# Morning 40 Federation
scaruffi --ratings 1960
# 9.5
# - Captain Beefheart - Trout Mask Replica (1969)
# 9.0
# - Bob Dylan - Blonde On Blonde (1966)
# - Captain Beefheart - Safe As Milk (1967)
# ...