Grok Bot waybackification

Ole Eichhorn

Grok Bot self-portraitHi all, sit down and grab a cold one, here’s a nice little Grok Bot story.

I have a 23-year old personal blog (Critical Section). Over those years I have posted about 3,600 items, and they contain about 33,000 links. Many of those links no longer point to their content; the Internet does not hang around. ( Interestingly, the more “major” the site being linked, the less likely the content is still there, while personal blogs like mine just keep on ticking.)

So that’s sad, but the good news is the awesome Wayback Machine has backed up a great deal of that content. How cool would it be to test each link and see if the content is still there, and if it isn’t, try to “waybackify” it; have the link point to the content in the archive instead. That would be cool.

This is a project I have been contemplating for years, but it’s a little daunting, with quite a variety of edge cases, so I put it off. But now, with my trusty companion Grok Bot, ‘tis done!

Did I write code to do this? I did not. I am a pretty decent Python coder and time was, I would happily have waded in on the details. But I simply sat down at my iPad and had a conversation with my Bot. I explained the problem - it inspected my site to check it out - and explained the highest level logic of a solution. In five minutes I had a running program. The bot even made strong suggestions like back up every post which gets updated (duh), mark the truly dead links as well as the waybackified ones with a CSS class, build a cache so that links which have already been resolved don’t have to be reprocessed (and to facilitate multiple passes), etc.

As I said, that were weird edge cases. We had to treat links to the root of a site differently - mostly those are links to an entity like a company or magazine or person, and not links to specific content. We had to worry about links that still worked, but the content had changed. We had to deal with sites that are now paywalled. Sites which redirect to other sites. Links which were to RSS feed items instead of web pages. Internal links which are now dead. Etc.

Through it all, I wrote no code at all. I did not look at the code. I did not even think about the code. I simply chatted with my bot, ran the program, relayed the results, and iterated. One overnight run later poof! The entire site is happily waybacked.

Using the Bot was cool, and getting this done was cooler. But the coolest thing of all is surfing all those old posts, and visiting all those old sites! I remember so many of them, wow, and now I can visit them again.

Onward!

==== waybackify summary ====
posts scanned:                 3589
posts with changes:            2151
links found:                   33502
external links checked:        24134  (17906 unique)
. waybacked:                   11666
. marked deadlink:             3127
. dead, no snapshot (left):    4264
. blocked/challenge (left):    1888
. live and fine (left):        7899
internal links checked:        7627
. broken internal:             211  (41 with suggested fix) – note these also waybacked

← All posts