Skip to content

Instantly share code, notes, and snippets.

@danabrey
Created June 13, 2017 15:15
Show Gist options
  • Save danabrey/dec6681cd5d8a687382f7e0f978bea95 to your computer and use it in GitHub Desktop.
Save danabrey/dec6681cd5d8a687382f7e0f978bea95 to your computer and use it in GitHub Desktop.
Extract matchups in plain text from MyFantasyLeague weekly matchups page
output = "";
$(".h2hmatchups.report").each(function() {
let $this = $(this);
$this.find("tr").each(function(el, i) {
output += $(this).text() + ((el%2==0) ? "\n" : " v ");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment