Last active
June 9, 2016 02:17
-
-
Save codydunne/036e24610219383580475ae32a30518d to your computer and use it in GitHub Desktop.
Fringe Festival Page Data Extraction Bookmarklet
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
First, drag this | |
<a href="javascript:(function(){var title=document.getElementsByClassName('event-heading')[0].getElementsByTagName('span')[0].innerText;var url=window.location.href;var time=document.getElementsByClassName('icon-time')[0].parentElement.innerText.replace(':','');var length=document.getElementsByClassName('icon-timer')[0].parentElement.getElementsByClassName('schema')[0].innerText;var loc=document.getElementsByClassName('icon-marker')[0].parentElement.innerText;loc=loc.substr(1,loc.length-3);title='<a href=\''+url+'\'>'+title+'</a>';var contents=[title,time,,,,,,,length,loc].join(',');window.open('data:text/html, <html contenteditable>'+contents+'<script>document.execCommand(\'selectAll\')</script></html>')})();">Extract Fringe</a> link to your browser bookmarks bar. | |
Then visit a Fringe event page such as <a href="https://tickets.edfringe.com/whats-on/600-people">this one</a> and click the bookmarklet. | |
You will get a result like this: | |
<pre>600 People,14:45,,,,,,,1 hour 5 minutes,Northern Stage at Summerhall (Venue 26)</pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment