Skip to content

Instantly share code, notes, and snippets.

@harborseals
Created August 25, 2025 23:03
Show Gist options
  • Save harborseals/7ecafe7dfab484e6a5b98b635694520c to your computer and use it in GitHub Desktop.
Save harborseals/7ecafe7dfab484e6a5b98b635694520c to your computer and use it in GitHub Desktop.
Foobar2000 LyricsPanel3 Genius Lyric Source Script
## install at C:\Program Files (x86)\foobar2000
## add your client access token from https://genius.com/api-clients
## add as source on lyricspanel3
## usage: py get_lyrics.py --track "Track Name" --artist "Your Artist"
from lyricsgenius import Genius
import sys
genius = Genius('YourTotallySecretAndUnkownAccessTokenShouldGoHereBuddy',
user_agent="curl/7.54.1") # use curl useragent to bypass antibot
genius.verbose = False
track_name = sys.argv[2]
artist_name = sys.argv[4]
result = genius.search_song(track_name, artist_name)
print(result.lyrics)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment