On 12 May 2022, Zero Reader said the following...
Nice work! I saw the request here a few weeks ago as well and also took
a stab at using Python for it. Mine scrapes timeanddate.com/on-this-day/ using BeautifulSoup and just lays out a simple date: headline thing,
just like yours.
This is great! My first attempts used BeautifulSoup as well. Though I was trying to parse Wikipedia directly and my brain just couldn't put the pieces together to get it working the way I wanted.
I'm not a programmer, so this code is probably laughable, but it's producing the result I want. There's a lot more data on that page available for scraping that I hope to incorporate later (famous births
and deaths).
I'm also not a programmer so definitely no judgment on code quality! In fact, thank you for sharing as it helps me see some of the pieces I was having trouble getting straight. Likewise, I'm hoping to incorporate more of the data eventually.
Again, thanks for sharing, I appreciate seeing a different approach to the same problem!
Travis 'blade' Mehrer
... I think I am, therefore, I am... I think.
--- Mystic BBS v1.12 A48 2022/03/26 (Raspberry Pi/32)
* Origin: CaNerDUH BBS (21:4/151)