Created
April 20, 2021 09:39
-
-
Save icetee/26e59ecbbc819e81244a61073f260000 to your computer and use it in GitHub Desktop.
MailTrain export scrapper script
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
var rows = []; | |
$('tbody tr').each((i, elem) => { | |
var $elem = $(elem), | |
$td = $(elem).find('td'); | |
var row = []; | |
row.push($td[0].innerText); | |
row.push($td[1].innerText); | |
row.push($td[2].innerText); | |
row.push($td[3].innerText); | |
rows.push(row); | |
}); | |
console.log(rows.join("\n")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment