GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - devlocalhost/pylyrical_api: pylyrical_api - lyrics API scraping from genius.com

BranchesTags
Open more actions menu

Latest commit

 

History

61 Commits
61 Commits

Folders and files

NameName
Last commit message
Last commit date
static/css
static/css
 
 
templates
templates
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
app.py
app.py
 
 
requirements.txt
requirements.txt
 
 
status.py
status.py
 
 

Repository files navigation

pylyrical_api

pylyrical_api - lyrics API scraping from genius.com

API Token

To self-host, you need to get an API token from the api client page. You can then add the API token to a ".env" file. Example: GENIUS_API_TOKEN="T0K3N"

Usage

  • API endpoint: /lyrics
  • Acceptable parameters: q
    • Example: /lyrics?q=how+do+i+make+you+love+me+the+weeknd

Responses

  • 200
{
    "artists": "",
    "lyrics": "",
    "source": "",
    "status": "200",
    "title": ""
}
  • 400
{
    "exception":
    "NoParameter",
    "message": "Missing parameter 'q'.",
    "status": "400"
}
  • 404
{
    "exception": "NoResults",
    "message": "'' did not give any results, Please try a different term.",
    "status": "404"
}
  • 500
{
    "exception": "ScrapeError",
    "message": "",
    "status": "500"
}
  • 502
{
    "exception": "RequestConnectionError",
    "message": "",
    "status": "502"
}

Exceptions/Errors

  • NoParameter: Occurs when no parameter was given.
    • Returns status code 400.
  • NoResults: Occurs when no results were found.
    • Returns status code 404.
  • ScrapeError: Occurs when pylyrical cannot scrape lyrics from genius.com
    • Returns status code 500.
  • RequestConnectionError: Occurs when pylyrical cannot send a request to genius.com
    • Returns status code 502.

About

pylyrical_api - lyrics API scraping from genius.com

Topics

beautifulsoupbeautifulsoup4bs4geniusgenius-apigenius-lyricsgenius-lyrics-apilyricslyrics-apilyrics-fetcherlyrics-finderlyrics-scrapingpythonpython-3python3scrapingscraping-pythonscraping-websites

Resources

Readme
MIT license
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.