Coder Social home page Coder Social logo

codekoch / ultimateguitar2bandhelper Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 9.34 MB

Export multiple tabs (i.e. under mytabs) from Ultimate Guitar to Bandhelper in ChordPro format.

Shell 2.72% Go 84.76% JavaScript 10.05% Python 2.47%
convert guitar tabs ultimate scraper bandhelper chordpro

ultimateguitar2bandhelper's Introduction

Requirements

  • go is installed ("go version" should display the version)
  • node js is installed

Convert multiple tabs from Ultimate Guitar into ChordPro format and import the resulting tabs into Bandhelper

  1. Open https://www.ultimate-guitar.com/user/mytabs or any other website on Ultimate Guitar containing your favorites tabs
  2. Mouse Rightclick -> Inspect -> Console -> Enter the following code:
// Create a variable for the links 
let links = document.querySelectorAll("a[href^='https://tabs.ultimate-guitar.com/tab/']");
// A loop that iterates over the links 
for (let link of links) {
  // Get the URL of the link as a string 
  let url = link.href;
  // Find the number at the end of the URL with a regular expression 
  let nummer = url.match(/\d+$/)[0];
  // Output the number in the console 
  console.log(nummer);
}

The result should be similiar to this... alt text

  1. Copy the resulting numbers like "VM108:11 1689257" into ASCII File

  2. Extract the interesting numbers in second column with

awk '{print $2 }' all.txt > numbers.txt
  1. Run ./Ultimate2Chord.sh script

(This script does the following:

  • scraping all tabs which match the numbers in numbers.txt from Ultimate Guitar into ASCII files
  • convert tab format into ChordPro format
  • deleting unneccessary characters like "-----"
  • create zip of all tabs)
  1. Import the zipped file into Bandhelper:
  • Log into the website and go to the Repertoire > Documents or Repertoire > Recordings page.
  • Click the Batch Import form at the top of the page, select your zip file and check the Add New Songs option.
  • Click Submit. This will upload all the files, which could take several minutes depending on your Internet connection.
  1. Done!

alt text

Used Gihub Projects

This project was inspired by Bing using GPT4 ;-))

Disclaimer / Legal

This software's purpose is purely educational. I am not responsible for how you use this package. This repository and all others associated with it are not affiliated with, authorized, or endorsed by Ultimate-Guitar.com.

ultimateguitar2bandhelper's People

Contributors

codekoch avatar thjim avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.