Created
August 3, 2015 20:58
-
-
Save dannyvassallo/64cca41901776c0a7570 to your computer and use it in GitHub Desktop.
Scrape Bandsintown for Date, Location, and Links
This file contains hidden or 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
$('.events-table tr').each(function() { | |
var date = $(this).find('.date'); | |
var location = $(this).find('.location'); | |
var href = $(this).find('.more'); | |
var link = date.find('a'); | |
var vlink = location.find('a'); | |
var hlink = href.find('a'); | |
var line = link.text() + ' ' + vlink.text() + ' ' + hlink.attr('href'); | |
document.write(line + "<br>"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment