Spotiflite
Scrapes Spotify and dumps data to a sqlite3 database.
- Uses
requeststo make queries, with pythonic user-agent - sleeps randomly between each HTTP call
- is NOT in a hurry to get anywhere
- has nice 80's cli interface
Install
$ pip install spotiflite
then go somewhere and setup a database:
$ spotiflite setup
you can also specify the db filename:
$ spotiflite --spotifydb=this/awesome/db setup
Usage
For example scrape Frank ෴ Zappa
$ spotiflite scrape 6ra4GIOgCZQZMOaUECftGN
got 44 artist ids
extracted data for Tom Waits
saved data for Tom Waits
got 8 artist ids
extracted data for Elmer Snowden
saved data for Elmer Snowden
got 6 artist ids
extracted data for Wesley Willis
saved data for Wesley Willis
...
while its running you can get stats in another window
$ spotiflite stats
rows: 9882
completed: 1395
jobs to do: 8487
DB size: 48.04 MB
Cli usage
Usage: spotiflite.py [OPTIONS] COMMAND [ARGS]...
Options:
-db, --spotifydb TEXT sqlite filename [default: spotify.db]
--help Show this message and exit.
Commands:
scrape starts scraping from given artist id
setup creates tables
stats print out db stats
teardown deletes tables
Metadata
Release files for spotiflite 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spotiflite-1.0.0.tar.gz | 5.3 kB | Without provenance | Details for spotiflite-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spotiflite-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for spotiflite-1.0.0-py3-none-any.whl |
Total release size: 12.3 kB
Release files / spotiflite-1.0.0.tar.gz
| Download URL | spotiflite-1.0.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7f7bc61c2e61eb316718ab2a7da280e6a825442d5069684459f1dbf6a04b788
|
|
BLAKE2b-256 checksum How to use checksums |
83aed0eaf4db07226f4d53332013f48afe386a7187aa082c086149baae46e28f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.5 Darwin/18.2.0
|
Release files / spotiflite-1.0.0-py3-none-any.whl
| Download URL | spotiflite-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce98006f5afc2f979e09da51bed695f5e2349a3e4141510ef6f93a2fea487bae
|
|
BLAKE2b-256 checksum How to use checksums |
2ec8e761c93b8c7c89b016e406f7ec161f330b60c64fbffb75a823378656bbea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.5 Darwin/18.2.0
|
Security for spotiflite 1.0.0
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.