Skip to content

Instantly share code, notes, and snippets.

@benschac
Created January 15, 2021 03:04
Show Gist options
  • Save benschac/73e109d3827d1d2760d6ac76e25913d1 to your computer and use it in GitHub Desktop.
Save benschac/73e109d3827d1d2760d6ac76e25913d1 to your computer and use it in GitHub Desktop.
var fans = document.querySelectorAll("a");
var fans = [...fans];
var [junk, ...rest] = fans;
var csv = rest
.map((fan) => {
return `${fan.href}, ${fan.textContent}\n`;
})
.join(",");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment