I’ve been spending the weekend expanding Wikipedia Seismograph. Before it used Wikipedia page view spikes to create date-bounded Google News searches, but I added in a bunch of different APIs and functionality.
Now it’s a concept-exploring machine and I’ve barely gotten started adding stuff to it.
I’ve been using Kendrick Lamar as one of my test searches because I’m fascinated by the beef between him and Drake (in my day it was Kool Moe Dee running over LL Cool J’s Kangol hat.)
Instead of just opening a Google News search link, here’s how this version of Wikipedia Seismograph works: after the news results are fetched, they’re displayed locally and sent to an OpenAI call. The call extracts the primary relevant concepts from the news items. This OpenAI call is *supposed* to only supply those concepts which are represented by Wikipedia pages, but OpenAI can’t handle that perfectly no matter how much prompt-tweaking I do. (I didn’t figure this to be a tough ask for AI, but apparently I was wrong.)
I put in a little Wikipedia-search backup to the OpenAI concept call — it keyword-searches Wikipedia for the concept provided and accepts the first result, getting around slightly-misstated or formatted page titles. Happily much of the time this method does work, and when it does you get these lovely detail / search divs for each extracted concept! The left gives you a picture, relationship overview, and official links. The right, a Wikipedia article summary but also a bunch of *very* useful tools.
There’s an “Individual Search” section that opens up into two search sections: web and news. The Web search uses a Mojeek API call to offer searches over a variety of time spans, starting with the original dates bracketed on the Seismograph.
The News portion, meanwhile, uses the GNews API to get its results. I’m using a free tier so what I’m getting is pretty limited but on the other hand it is free so I am not complaining at all!
A combined search lets me run queries for both the explored topic and with the original query. Only one result in this case but imagine this with a more-expensive, better apportioned news API.
I know it looks weird that I have separate sections for individual and combined searches instead of putting them all into one place. I wanted to have two separate searches so I could run comparative queries.
Finally, if — after you explore this related concept — you decide this is a topic you want to follow in the future, you have your choice of keyword-based RSS feeds from Bing, Bing News, WordPress, and Google News.
This version of Wikipedia Seismograph has given me a strong tool to explore related concepts when I’m exploring a topic or person from Wikipedia. I’ve still got plenty of things to add, though — Crony Corral or some of the other MegaGladys tools will go PERFECT with this.