Every last Systematic show link

5by5 Show link grabber
5by5 Show link grabber screenshot

I’ve done 30 episodes of Systematic now. Every week I goad my guests into sharing their “Top 3 Picks.” It’s usually software (kind of my thing), but it can be just about anything. After so many episodes I began to realize that I had no way to give guests advance warning as to what had been mentioned recently. I needed a list of every link ever mentioned on the show, all in one searchable page.

I wrote a quick script that creates a Markdown-formatted list of show links for any show page on 5by5. Click and copy. Then, I wrote one that spidered through the show starting from the first episode, just to get me caught up. Not surprisingly, I decided to test it on other people’s shows, too…

The end result is an easy-to-maintain list of every link ever posted for Systematic. After finishing the current list, I thought that at least the single-page scraper would be of interest to somebody out there, as it’s a really easy way to archive the week’s links from your favorite show. Click it and they’re ready to pop into nvALT or Evernote or whatever your bag is1.

They’re pretty simple jQuery bookmarklets. The main one for single page scraping looks like…

// generates a Markdown list of all the show links on a 5by5 episode page, 
// autoselects the result for copying and provides next/prev navigation
// only designed for 5by5, which already has jQuery loaded and matches 
// the regex. Customize as needed for other uses.
// Brett Terpstra 2013
var output = "\n\n### [Episode "+window.location.href.replace(/.*\/(\d)/,"$1")+"]("+window.location.href+")\n\n";
$('#episode_links').find('a').each(function(){ output += "* ["+$(this).text()+"]("+$(this).attr('href')+")\n" });

// create next/prev links (no boundry checking)
var ep = parseInt(window.location.href.match(/(\d+)$/)[0],10);
var nextLink = $('<a>').attr('href',window.location.href.replace(/\d+$/,ep + 1))
				.text('Next Episode')
var prevLink = $('<a>').attr('href',window.location.href.replace(/\d+$/,ep - 1))
				.text('Previous Episode')

// generate the overlay element and add text and links
	top: '0',left:'0',right:'0',bottom:'0',
}).append($('<pre id="eplinkoutput">').css('padding','20px').text(output)).append($('<div>').append(prevLink).append(nextLink)).appendTo('body');

// select the text in the pre element
var doc = document,
text = doc.getElementById('eplinkoutput'),
range, selection;

if (doc.body.createTextRange) {
    range = doc.body.createTextRange();
} else if (window.getSelection) {
    selection = window.getSelection();
    range = doc.createRange();

Note that this uses markup specific to 5by5 show pages and relies on jQuery already being loaded (which it is on 5by5). The script is best used as a bookmarklet, which I happen to have handy. Copy it into the address field of a bookmark in your browser (raw code here), visit a 5by5 show page and click it to run.


If for some reason you’re interested in the one that spiders an entire show, let me know. It’s not a secret or anything, I just can’t imagine anyone else thinking that would be a good time.

  1. I actually have another one of these that lets you click any element on a page to gather all of the links within that element and send them straight to Pinboard. Another time.

Brett Terpstra

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff on Twitter, GitHub, and Mastodon. Keep up with this blog by subscribing in your favorite news reader.

This content is supported by readers like you.

Join the conversation