I didn't own the entire code, which is actually came from Lester Navarra, the one who taught me how to scrape this website.
- Added URL for random and first data
- Added all data
- Added get chords for customized URL
const tabs = require("ultimate-guitar")
let do_it = async () => {
let data = await tabs.firstData("song title")
console.log(data)
}
do_it()
const tabs = require("ultimate-guitar")
let do_it = async () => {
let data = await tabs.randomData("song title")
console.log(data)
}
do_it()
{
"title": "Song Title",
"artist": "Artist/Band name",
"key": "Sample Key",
"type": "Chords/Tabs",
"url": "Url Link",
"chords": "Chords Gathered"
}
const tabs = require("ultimate-guitar")
let do_it = async () => {
let data = await tabs.allData("song title")
console.log(data)
}
do_it()
{
"title": "Song Title",
"artist": "Artist/Band name",
"key": "Sample Key",
"type": "Chords/Tabs",
"url": "Url Link"
}
const tabs = require("ultimate-guitar")
let do_it = async () => {
let data = await tabs.getChords("song url")
console.log(data)
}
do_it()
{
"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"
}
{
"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.
- Lester Navarra
- John Paul Caigas
- Mart Anthony Salazar
- Salvador
- Earl Shine Sawir
- John Jeremy Antiguo
- John Roy Lapida Calimlim
- Mark Kevin Manalo
- Freecodecamp
- Tutorialspoint