Skip to content

Instantly share code, notes, and snippets.

@icetee
Created April 20, 2021 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icetee/26e59ecbbc819e81244a61073f260000 to your computer and use it in GitHub Desktop.
Save icetee/26e59ecbbc819e81244a61073f260000 to your computer and use it in GitHub Desktop.
MailTrain export scrapper script
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