Created
May 12, 2022 14:49
-
-
Save arieljatib/f5ad96fb1f4c9577af5deb31a16dd019 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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