-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
from azapi import AZlyrics | ||
|
||
# Names should be passed corrrectly | ||
# If you can't remember, use google or duckduckgo | ||
# AZlyrics('google') | ||
api = AZlyrics() | ||
|
||
api.getLyrics(artist='kendrick lamar', title='humble') | ||
api.artist = 'Taylor Swift' | ||
api.title = 'Blank Space' | ||
|
||
api.getLyrics() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
from azapi import AZlyrics | ||
|
||
api = AZlyrics() | ||
api = AZlyrics('google') | ||
|
||
# We are Searching for Meghan's song "All about that bass" | ||
songs = api.search('about the bass', category = 'songs') | ||
api.title = 'about that bass' | ||
|
||
# Song appears to be the first in search results | ||
song_url = songs[0]['url'] | ||
|
||
Lyrics = api.getLyrics(url = song_url) | ||
Lyrics = api.getLyrics() | ||
|
||
print(Lyrics) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
from azapi import AZlyrics | ||
|
||
api = AZlyrics() | ||
api = AZlyrics('google') | ||
|
||
# Kanye is in the format of "West" in AZLyrics database | ||
# Here we search for his name to fetch the correct url | ||
songs = api.getSongs('Kanye', True) | ||
api.artist = 'Kanye west' | ||
songs = api.getSongs() | ||
|
||
print(songs) | ||
for song in songs: | ||
print(song, songs[song]['year']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
from azapi import AZlyrics | ||
|
||
api = AZlyrics() | ||
api = AZlyrics('duckduckgo') | ||
|
||
# Mis-typing "Meghan Trainor" and "All about the bass" | ||
api.artist = 'Mehgan trenor' | ||
api.title = 'about this bass' | ||
|
||
# Using search to get correct artist and title | ||
Lyrics = api.getLyrics(artist='meghan', title='bass', search=True) | ||
Lyrics = api.getLyrics() | ||
|
||
print(Lyrics) |