|
|
#16 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
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: 46
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 | |
|
|
|
|
#18 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 645
Karma: 85520
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. |
|
|
|
|
|
#19 |
|
Member
![]() Posts: 12
Karma: 10
Join Date: May 2013
Device: Kobo Touch
|
|
|
|
|
|
|
#20 | |
|
Enthusiast
![]() Posts: 46
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 | |
|
|
|
|
#21 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
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: 46
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara Colour
|
|
|
|
|
|
|
#23 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 645
Karma: 85520
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: 180
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. |
|
|
|
|
|
|
#25 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 645
Karma: 85520
Join Date: May 2021
Device: kindle
|
|
|
|
|
|
|
#26 | |
|
Groupie
![]() Posts: 180
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 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 645
Karma: 85520
Join Date: May 2021
Device: kindle
|
idk maybe lower the font size and check if it re-adjusts.
|
|
|
|
|
|
#28 |
|
Groupie
![]() Posts: 180
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
|
|
|
|
|
|
|
#29 |
|
Groupie
![]() Posts: 180
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 ?
|
|
|
|
![]() |
|
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 |