View Single Post
Old 06-22-2025, 03:33 PM   #7
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 328
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
Economist recipe structure

I don’t do calibre recipe development anymore, but for anyone who is interested the following works for the Economist weekly edition.

First, load https://www.economist.com/weeklyedition/archive

Pick out the anchor tags with href in the form /weeklyedition/yyyy-mm-dd

The anchor tags are in reverse-chronological order so the first one is the current edition, and subsequent tags are prior editions.

Now load https://www.economist.com/weeklyedition/yyyy-mm-dd. where yyyy-mm-dd is the edition date you want.

Now pick out the JSON object you can find inside <script id=“__NEXT DATA__”>, call this json (after decoding)

You can parse the edition contents by looking at json.props.pageProps.content.sections.articles

For all of these load (as well as articles) use user agent

Mozilla/5.0 (Linux; Android 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.6533.103 Mobile Safari/537.36 Lamarr
nickredding is offline   Reply With Quote