Skip to main content

lastfm

License codecov Documentation Status

Usage

pip install lastfm-to-sqlite

Now run CLI:

lastfm export 244ec3b62b2501514191234eed07c75d lastfm_dump.db --user Way4Music

That will use (or create) a SQLite database called lastfm_dump.db and a table called playlist to export user's entire playlist.

To scrape specific dates, use --start_date and --end_date:

lastfm export 244ec3b62b2501514191234eed07c75 lastfm_dump.db --user way4music --start_date 2021-08-21 --end_date 2021-09-01

Python-based API works like this:

from lastfm import LastFM

# specific date, ommit start_date and end_date to download all tracks
api = LastFM(
    api="244ec3b62b2501514191234eed07c75d",
    username="way4music",
    start_date="2021-08-21",
    end_date="2021-09-01"
)
data = api.fetch()
song = next(data)
print(song)
container = []
for item in data:
    container.append(item)

Metadata

Release files for lastfm-to-sqlite 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lastfm-to-sqlite 0.2.3
File Size Uploaded Provenance Actions
lastfm-to-sqlite-0.2.3.tar.gz 8.1 kB Without provenance Details for lastfm-to-sqlite-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lastfm-to-sqlite 0.2.3
File Interpreter ABI Platform Actions
lastfm_to_sqlite-0.2.3-py3-none-any.whl Python 3 none any Details for lastfm_to_sqlite-0.2.3-py3-none-any.whl

Total release size: 16.6 kB

Release files / lastfm-to-sqlite-0.2.3.tar.gz

Download URL lastfm-to-sqlite-0.2.3.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
345739b803c15141db0c681b5010fd94ff40f7a60ab66663d0e0cd3deac82812
BLAKE2b-256 checksum
How to use checksums
021279473e374fec28e512da2e15c2c3b6632cd461b0e96365de77299f45cddc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release files / lastfm_to_sqlite-0.2.3-py3-none-any.whl

Download URL lastfm_to_sqlite-0.2.3-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2351510a420518d605104ceec5b204aa1af7853448f07156e8a20202a4fd5b1a
BLAKE2b-256 checksum
How to use checksums
91724fbeac6c4b557bcacff5bb3f559bb56dee3d7b35bd20547d169d581d6221
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Security for lastfm-to-sqlite 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page