Readme

fetch the contents of the Wikipedia "On this day in history" page. defaults to JSON output, but specify ?format=textor ?format=html for other outputs. e.g.

#wikipedia

Code
HTTP
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
4
andrewn avatar
andrewn(Edited )

Why does the wikipedia link show a page for July 20th (it's July 25th)? Come on wikipedia! :-)

jamiedubs avatar

@andrewn huh! Looks like they might've renamed it to "Selected Anniversaries" and July 20th was the last entry?! very annoying

jamiedubs avatar

Looks they've switched the Main_Page to transclude from a URL like: {{Wikipedia:Selected anniversaries/{{#time:F j}}}}

jamiedubs avatar

sorta fixed now. including too much content! All events, births & deaths on that date. I only want Events but having trouble getting Cheerio to behave and ran out of time :)

jamiedubs-wikipediatoday.web.val.run
Updated: August 14, 2024