04-28-2024, 06:42 AM | #16 |
creator of calibre
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I guess I can try to see if implementing the login using a headless js browser and then copying the cookies will work, but so many moving parts...
|
04-28-2024, 09:18 AM | #17 |
Enthusiast
Posts: 37
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara Colour
|
Oh dear, sounds fragile. But if you could, that would be really great. Happy to test it you need it.
Many thanks. |
Advert | |
|
04-28-2024, 11:44 AM | #18 |
Fanatic
Posts: 543
Karma: 82944
Join Date: May 2021
Device: kindle
|
this is just temporary. i dont know for how long this can work.. but it works for me, for this weeks edition.
Last edited by unkn0wn; 04-28-2024 at 01:02 PM. |
04-28-2024, 01:07 PM | #19 |
Member
Posts: 12
Karma: 10
Join Date: May 2013
Device: Kobo Touch
|
|
04-28-2024, 09:22 PM | #20 | |
Enthusiast
Posts: 37
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara Colour
|
Quote:
I note that it produces a much smaller file than the normal recipe. What's the difference? (I've tried but can't really understand the recipe script) Also, FYI - it only seems to work for the current edition - I tried putting in last week's date on line 18 but it still brought up the current edition. |
|
Advert | |
|
04-28-2024, 11:03 PM | #21 |
creator of calibre
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@unkn0wn: Nice find. I have updated the builtin recipes to use the GraphQL query to load the content, let's see if it continues to work next week. I have kept the old code around so if it does break next week we can still re-use it easily.
This, of course breaks downloading past editions, but I imagine to re-enable that we need to find the correct content_id give an edition date. |
04-28-2024, 11:46 PM | #22 |
Enthusiast
Posts: 37
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara Colour
|
|
04-29-2024, 01:38 AM | #23 | |
Fanatic
Posts: 543
Karma: 82944
Join Date: May 2021
Device: kindle
|
Quote:
i think there's a different query for past editions.. i'll try to find it, if this works for next weeks edition. |
|
05-01-2024, 10:19 PM | #24 | |
Groupie
Posts: 172
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
|
Quote:
https://www.economist.com/the-world-in-brief Last edited by Steven630; 05-02-2024 at 12:03 AM. |
|
05-02-2024, 04:59 AM | #25 |
Fanatic
Posts: 543
Karma: 82944
Join Date: May 2021
Device: kindle
|
|
05-03-2024, 12:49 PM | #26 | |
Groupie
Posts: 172
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
|
Quote:
There is a little bug with Economist recipe. The flytitle appears on a separate page before the h1 title(thus before the rest of the article) on my Kindle. Flytitle, h1 title, and rubric should be on the same page. I don't know why this happens. |
|
05-04-2024, 09:56 AM | #27 |
Fanatic
Posts: 543
Karma: 82944
Join Date: May 2021
Device: kindle
|
idk maybe lower the font size and check if it re-adjusts.
|
05-04-2024, 10:08 AM | #28 |
Groupie
Posts: 172
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
|
|
05-05-2024, 12:50 AM | #29 |
Groupie
Posts: 172
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
|
I ended up adding the text of flytitle to h1:
Code:
if 'flyTitle' in data and data['flyTitle']: title_text = f"{data['flyTitle']}: {data['title']}" else: title_text = data['title'] #E(article, 'div', data['flyTitle'] , style='color: red; font-size:small; font-weight:bold;') E(article, 'h1', title_text, title=safe_dict(data, "url", "canonical") or '') |
05-12-2024, 05:50 AM | #30 |
Member
Posts: 12
Karma: 10
Join Date: May 2013
Device: Kobo Touch
|
An observation - the reworked recipe seems to download the complete paper, thank you. However the filesize is now much smaller than previous. The current copy is c. 7Mb, its been 20-30Mb for some while - is this expected ?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The Economist recipe fails - no articles | mkgtu | Recipes | 2 | 05-11-2023 08:49 PM |
Economist only downloading two articles | davidsmartin | Recipes | 6 | 06-20-2022 10:17 AM |
Convert "The Economist" EPUB to MOBI = Lose Navigation to Articles and Sections | dukelov3 | Conversion | 3 | 03-08-2013 11:11 PM |
Fetching multi-page articles | Steven630 | Recipes | 27 | 08-21-2012 11:04 PM |
The Economist-Missing articles | redall | Recipes | 0 | 06-16-2011 01:41 PM |