Skip to main content

You can get lyrics from genius with many usefull functions.

Project description

lyrcisScraper

You can scrape song lyrics that you want.

Getting Started

You can get lyrics easily with this small module.Also, you can get all artists whose name begins with specific letter with this module.Furthermore this module can get all song lyrics of artists whose name is begin with spesific letter.

Prerequisites and Installing

You need install this module with the following code below from pypi.

pip install lyricsScraper

Usage

First of all, you must import this module to your py projects by the following code below.

from lyricsScraper import lyricsScraper

If you want get all artists whose name is begin with spesific letter, use the following function below.

artist_with_letter(letter)

This function will return list of artists.


If you want get artist's songs, use the following function below.

request_song_url(artist_name, song_cap)

This function will return dictionary of songnames and genius song urls.


If you want scrape song lyrics with genius song url, use that following function below.

scrape_song_lyrics(url)

It will return as a string.


If you want scrape all song lyrics whose artist name is begin with spesific letter, use the following function below.You must define song capacity of each artist.

scrape_data(firstLetterOfArtist,songCapacityOfEachArtist)

It will return a dictionary.


If you want get song lyrics with song name and artist, use the following function below.In addition,You can probably get lyrics by defining only song name.

spesific_lyric(nameOfSongAndArtist)

It will return a string


If you want get song lyrics of spesific artist, use the following funciton below.You must define song capacity.

scrape_artists_songs(artistname,songcapacity)

It will return a dictionary.



Bulit With

License

This project is licensed under the MIT License - see the LICENSE.md file for details

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

lyricsScraper-1.0.4.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file lyricsScraper-1.0.4.tar.gz.

File metadata

  • Download URL: lyricsScraper-1.0.4.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.3

File hashes

Hashes for lyricsScraper-1.0.4.tar.gz
Algorithm Hash digest
SHA256 c72d2116daa4d02c12490e6501fbf5fd0791507963e19fe4f48c1b43ff5de7fc
MD5 a667b9e2366169f0315af8ff40d8b7e0
BLAKE2b-256 4ba8bc451be9991c9bec3f49e60e41ccb138bf0ff193358f2ebfdc66b63bb954

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page