Skip to main content

Description

LyricWikia is an online wiki-based lyrics database and encyclopedia. It used to provide full access to song lyrics via API, but the service has been discontinued.

This API scrapes the song web page and returns the lyrics. Please verify that your use complies with the LyricWikia terms of service.

Installation

The package lyricwikia is on PyPI, so you can install it using pip:

pip install lyricwikia

Otherwise download this repository and use the setup.py file:

python setup.py install

It is also avaliable on the AUR for Arch Linux users: python-lyricwikia

Usage

You can use the lyrics command to look for a song lyrics.

usage: lyrics [-h] [–separator SEPARATOR] [–version] ARTIST SONG

Get lyrics of a song from LyricWikia

positional arguments:

ARTIST Artist name SONG Song title

optional arguments:
-h, --help

show this help message and exit

--separator SEPARATOR

line separator

--version

show program’s version number and exit

Example

$ lyrics 'Led Zeppelin' 'Stairway to heaven'
There's a lady who's sure all that glitters is gold
...

API

At the moment lyricwikia provides two APIs that are not officially already provided by the official APIs):

  • get_lyrics(artist, song, linesep='\n', timeout=None): returns a string

    that contains the lyrics of the song as provided by LyricWikia. If the lyrics is not found, the LyricsNotFound exception is raised.

  • get_all_lyrics(artist, song, linesep='\n', timeout=None): returns a list of all the lyrics versions of the song (e.g., both the kanji and the romaji versions if available). If the lyrics is not found, the LyricsNotFound exception is raised.

import lyricwikia
lyrics = lyricwikia.get_lyrics('Led Zeppelin', 'Stairway to heaven')

Used by

Metadata

Release files for lyricwikia 0.1.11

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

Source distribution (sdist)

Source distribution for lyricwikia 0.1.11
File Size Uploaded Provenance Actions
lyricwikia-0.1.11.tar.gz 3.8 kB Without provenance Details for lyricwikia-0.1.11.tar.gz

Release files / lyricwikia-0.1.11.tar.gz

Download URL lyricwikia-0.1.11.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
886d7904d6def5897f68fa02a04757efe763ee7bb14d7d623a3d2531f29eb450
BLAKE2b-256 checksum
How to use checksums
f354d7152d4ea9a86b4a98375cf9e940b77fbb404b67f9a8a17581b4478b6c8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.15

Security for lyricwikia 0.1.11

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