FileScraper package¶
Submodules¶
FileScraper.MidiScraper module¶
-
FileScraper.MidiScraper.download_data_set_from_csv(csv_path, midi_directory)¶ Download a data set of MIDI files, as specified by the csv file in csv_path, and put them into midi_directory
Parameters: - csv_path – Path to the csv file with lines in format [midi_name];[midi_url]
- midi_directory – Local location for the downloaded files
-
FileScraper.MidiScraper.download_midi(midi_url, midi_directory, midi_name)¶ Try to download a MIDI file from the Internet, (use midi_url) and place it in the midi_directory, called midi_name
Parameters: - midi_url – Location of the MIDI file on the Internet
- midi_directory – Local directory where the MIDI file should be placed on your machine
- midi_name – File name of your MIDI file
Returns: Boolean indicating success or failure, message
FileScraper.TabScraper module¶
-
FileScraper.TabScraper.download_data_set_from_csv(csv_path, tab_directory)¶ Download a data set of tab files, as specified by the csv file in csv_path, and put them into tab_directory
Parameters: - csv_path – Path to the csv file with lines in format [url];[name];[key];[filename]
- tab_directory – Local location for the downloaded files
-
FileScraper.TabScraper.download_tab(tab_url, tab_directory, tab_name)¶ Try to download a tab file from the Ultimate Guitar (given url) and place it in the tab_directory, called tab_name
Parameters: - tab_url – Location of the tab file on the Internet
- tab_directory – Local directory where the tab file should be placed on your machine
- tab_name – File name of your tab file
Returns: Boolean indicating success or failure, message