Skip to content

Instantly share code, notes, and snippets.

@arieljatib
Created May 12, 2022 14:49
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 arieljatib/f5ad96fb1f4c9577af5deb31a16dd019 to your computer and use it in GitHub Desktop.
Save arieljatib/f5ad96fb1f4c9577af5deb31a16dd019 to your computer and use it in GitHub Desktop.
// scrape sched page to list name, company and position for speakers.
// based on code from https://medium.com/@art.stories/scribd-export-notes-workaround-13af221879d6
// and scribd_export.js
var annotations = document.querySelector('.sched-container-people');
var notesParagraphs = Array.from(annotations.querySelectorAll('h2, div.sched-event-details-company, div.sched-event-details-position'));
var notesText = notesParagraphs.map((paragraph) => `<p>${paragraph.innerHTML}</p>`).join('');
var win = window.open("", "Title", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=200,top="+(screen.height-400)+",left="+(screen.width-840));
win.document.body.innerHTML = `<div>${notesText}</div>`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment