Hi 👋
I love the idea of this, but I'm not from the UK. There's only so much Boris Johnson I can handle, before wanting to retreat to the calm, serene waters of Scott Morisson. cough.
As the Guardian also offers AU/US (digital) editions, sdo you think it'd be possible to amend this to support different content?
I'm guessing it's not easily supported, as this script seems to rely on the articles to part of the physical "book" newspaper edition, which isn't made in AU/US. Subsequently, we don't get the newspaperPageNumber
value in the response (nor the newspaper-book[-section]
tags), so it'd make for a poor experience.
Nuts. 🥜
But a side-quest might still be possible. We can filter on the production-office
param when hitting the API. Doing so for yesterday (4th October, 2020), gives us:
- without
production-office
: 188 articles
production-office=aus
: 16 articles
production-office=uk
: 153 articles
production-office=us
: 19 articles
I could imagine a world in which the AU/US articles could form a sort of "supplement" (hidden by default, but available if you tap thru). It wouldn't read/categorise/etc quite as nicely, but given how (relatively) few articles there are, I don't think it's a huge burden to thumb through them.
(I imagine some of the AU/US articles occasionally make it into the print issue, so it's hardly bulletproof)
Or, do you know of any API/params that could more effectively do the job?