1.0.3 • Published 1 year ago
ultimate-guitar v1.0.3
Tabs Ultimate Guitar
Ryann Kim Sesgundo
Disclaimer
I didn't own the entire code, which is actually came from Lester Navarra, the one who taught me how to scrape this website.
What's new!!!
- Added URL for random and first data
- Added all data
- Added get chords for customized URL
Sample code (First data gathered)
const tabs = require("ultimate-guitar")
let do_it = async () => {
let data = await tabs.firstData("song title")
console.log(data)
}
do_it()
Sample code (Random data gathered)
const tabs = require("ultimate-guitar")
let do_it = async () => {
let data = await tabs.randomData("song title")
console.log(data)
}
do_it()
Output (Sample)
{
"title": "Song Title",
"artist": "Artist/Band name",
"key": "Sample Key",
"type": "Chords/Tabs",
"url": "Url Link",
"chords": "Chords Gathered"
}
Sample Code (All Data)
const tabs = require("ultimate-guitar")
let do_it = async () => {
let data = await tabs.allData("song title")
console.log(data)
}
do_it()
Output (Sample)
{
"title": "Song Title",
"artist": "Artist/Band name",
"key": "Sample Key",
"type": "Chords/Tabs",
"url": "Url Link"
}
Sample Code (getChords)
const tabs = require("ultimate-guitar")
let do_it = async () => {
let data = await tabs.getChords("song url")
console.log(data)
}
do_it()
Output (Success)
{
"resultCode": 200,
"song_name": "Song Name",
"artist_name": "Artist",
"type": '"Chords, Tabs, Base or any related instrument",
"rating": 3.14,
"tonality_name": "Key",
"username": "The one who upload.",
"chords": "chords here"
}
Output (Error)
{
"resultCode": 404,
"message": "Error message"
}
Bugs and errors are still expected to this project, but still trying to improve it and make the error lesser or can handle by the program.
Credits
- Lester Navarra
- John Paul Caigas
- Mart Anthony Salazar
- Salvador
- Earl Shine Sawir
- John Jeremy Antiguo
- John Roy Lapida Calimlim
- Mark Kevin Manalo
- Freecodecamp
- Tutorialspoint