![]() |
#16 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,260
Karma: 23661992
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...
|
![]() |
![]() |
![]() |
#17 |
Enthusiast
![]() Posts: 31
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara HD
|
Oh dear, sounds fragile. But if you could, that would be really great. Happy to test it you need it.
Many thanks. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 517
Karma: 82764
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 12:02 PM. |
![]() |
![]() |
![]() |
#19 |
Member
![]() Posts: 12
Karma: 10
Join Date: May 2013
Device: Kobo Touch
|
|
![]() |
![]() |
![]() |
#20 | |
Enthusiast
![]() Posts: 31
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara HD
|
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 | |
|
![]() |
#21 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,260
Karma: 23661992
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. |
![]() |
![]() |
![]() |
#22 |
Enthusiast
![]() Posts: 31
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara HD
|
|
![]() |
![]() |
![]() |
#23 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 517
Karma: 82764
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. |
|
![]() |
![]() |
![]() |
#24 | |
Groupie
![]() Posts: 165
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
|
Quote:
https://www.economist.com/the-world-in-brief Last edited by Steven630; 05-01-2024 at 11:03 PM. |
|
![]() |
![]() |
![]() |
#25 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 517
Karma: 82764
Join Date: May 2021
Device: kindle
|
|
![]() |
![]() |
![]() |
#26 | |
Groupie
![]() Posts: 165
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. |
|
![]() |
![]() |
![]() |
#27 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 517
Karma: 82764
Join Date: May 2021
Device: kindle
|
idk maybe lower the font size and check if it re-adjusts.
|
![]() |
![]() |
![]() |
#28 |
Groupie
![]() Posts: 165
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
|
|
![]() |
![]() |
![]() |
#29 |
Groupie
![]() Posts: 165
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 '') |
![]() |
![]() |
![]() |
#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 ?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
The Economist recipe fails - no articles | mkgtu | Recipes | 2 | 05-11-2023 07:49 PM |
Economist only downloading two articles | davidsmartin | Recipes | 6 | 06-20-2022 09:17 AM |
Convert "The Economist" EPUB to MOBI = Lose Navigation to Articles and Sections | dukelov3 | Conversion | 3 | 03-08-2013 10:11 PM |
Fetching multi-page articles | Steven630 | Recipes | 27 | 08-21-2012 10:04 PM |
The Economist-Missing articles | redall | Recipes | 0 | 06-16-2011 12:41 PM |