abers / lastsounds

Simple way to scrobble tracks from a BBC Sounds programme to Last.fm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lastsounds

Scrobble tracks from a BBC Sounds episode to Last.fm via the command line. The application takes a URL for a BBC Sounds episode as an argument and scrobbles the tracks assuming the user finished listening at runtime.

Basic usage -

python sounds_scrobble.py [OPTIONS] [URL]

Note: If Python 3 is not the default on your system you'll need to run python3 ... instead.

By default, lastsounds scrobbles all tracks from the episode. To scrobble only a range of tracks, pass the option --partial or -p when running the command -

python sounds_scrobble.py --partial [URL]

Example output

Dependencies

Lastsounds depends on BeautifulSoup, Click, Requests, Colorama, and pylast.

All dependencies can be installed using pipenv by running pipenv install in the git repository.

Setup

Lastsounds requires an API key & a shared secret that are specific to your account. These can be created here. Only the "Application name" field needs to be filled and the rest can be left blank.

After creating the key and secret, create a copy of details and rename it to .details. Then edit it to add values for your API key, shared secret, and username.

About

Simple way to scrobble tracks from a BBC Sounds programme to Last.fm

License:GNU General Public License v3.0


Languages

Language:Python 100.0%