genius.py
Python wrapper for Genius API
With genius.py, enjoy an easy-to-use interface to interact with Genius API
Table of Contents
Features
- Feature rich interface
- Easy to use
- Lyrics web scraper
Install
pip install geniusdotpy
Getting Started
To get started...
-
Get your Client Access Token here
-
Create a new Genius object
from geniusdotpy.genius import Genius # Get your client access token from https://genius.com/api-clients client_access_token = "token" # Create a GeniusBuilder object genius = Genius(client_access_token=client_access_token) # Search for a track by ID track1 = genius.search_track_by_id(378195) print(repr(track1)) # Search artist by ID artist1 = genius.search_artist(track1.artist.id) print(repr(artist1)) # Search for a track by query track3 = genius.search("Beat It")[0] print(repr(track3)) # Search tracks by artist tracks: list[Track] = genius.search_track_by_artist(artist_id=16775) track4 = tracks[0] print(repr(track4)) # Retrieve lyrics track4.get_lyrics() print(track4.lyrics)
-
???
-
Profit
References
Created with 💖 by jjoeldaniel
Metadata
Release files for geniusdotpy 1.1.1
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 |
|---|---|---|---|---|
| geniusdotpy-1.1.1.tar.gz | 5.1 kB | Without provenance | Details for geniusdotpy-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geniusdotpy-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for geniusdotpy-1.1.1-py3-none-any.whl |
Total release size: 11.6 kB
Release files / geniusdotpy-1.1.1.tar.gz
| Download URL | geniusdotpy-1.1.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c339e550bd0f519f25fe1fd264540d6d1165665db6ba83186e40856b0fa44ff
|
|
BLAKE2b-256 checksum How to use checksums |
a3ec4a9dbd5bedb6a1a527fb0360dd501a1e00abf6433391c2ecaa64f452c18c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / geniusdotpy-1.1.1-py3-none-any.whl
| Download URL | geniusdotpy-1.1.1-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef20ecffc414c275e7db8f8ab7c217e98f696ef662b92d619b38664bf1142e73
|
|
BLAKE2b-256 checksum How to use checksums |
0e3bcd7dbc8a4c3a0a5fc4be2fd6a2d831d4061af5db4d04420a3b0bb63b8b51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for geniusdotpy 1.1.1
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.