Skip to content

Instantly share code, notes, and snippets.

@sbeleidy
Created July 8, 2018 16:03
Show Gist options
  • Save sbeleidy/cc15946b8cd822b4b39486f9b13edcd8 to your computer and use it in GitHub Desktop.
Save sbeleidy/cc15946b8cd822b4b39486f9b13edcd8 to your computer and use it in GitHub Desktop.
Get all papers info from NIPS listing
// Go to NIPS page ex: https://papers.nips.cc/book/advances-in-neural-information-processing-systems-30-2017
// Open JS console
// Copy and paste the below
// In Chrome, click on "Copy" that shows up after the csv variable
// Paste in Google Sheets and add any columns you'd like
paperList = Array.from(document.getElementsByClassName("main wrapper")[0].getElementsByTagName("li")) // Change "main wrapper" if list wrapper class changes
papers = []
paperList.forEach((paper) => {
children = Array.from(paper.children)
paperName = children[0].text
link = children[0].href
pdfLink = link + ".pdf"
paperAuthors = children.slice(1).map((author) => author.text).join(" & ")
papers.push([paperName, paperAuthors, link, pdfLink].join("\t"))
});
csv = papers.join("\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment