Created
April 26, 2012 06:31
-
-
Save zaki/2496713 to your computer and use it in GitHub Desktop.
Metro Scraping Memo
This file contains 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
$("#timeTable > table > tbody > tr").each(function() { var hour = ($(".hour", this).text()); var times = []; $(".timeData", this).each(function() { times.push($(".info01", this).text().replace(/\s+/g, '')+" "+$(".info02", this).text().replace(/\s+/g, '')+" "+$(this).attr('class').replace(/timeData|dir|\s+/g, '')); }); console.log(hour, times)}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment