Scrape LAST.FM playlists to SQLite
Project description
lastfm
Scrape LAST.FM user's playlists to SQLite. Docs: https://lastfm.readthedocs.io/en/latest/
Usage
Add your LAST.FM api-key to .env
file:
LASTFM_API=asd
Now run CLI:
lastfm export lastfm_dump --user Way4Music
That will use (or create) a SQLite database called lastfm_dump
and a table called playlist
to export user's entire playlist.
To scrape specific dates, use --start_date
and --end_date
:
lastfm export lastfm_dump --user way4music --start_date 2020-10-15 --end_date 2020-10-25
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd lastfm
python -m venv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
pip install -r requirements.txt
To run the tests:
pytest
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lastfm-to-sqlite-0.2.1.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for lastfm_to_sqlite-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3954dbd2a42488c98b77895a431b0b068c54f56ea8f97824d1b42f17b358baa |
|
MD5 | 1ec6b71fbbb8d63110bc1f6099654638 |
|
BLAKE2b-256 | 99fba3d770bfbd6e0d9a190a3845fb3e675ae032387297948448687c66252891 |