Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 02-09-2023, 02:16 PM   #1
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 51
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
Recipe request - The Economist - Search

The Economist magazine use to have a nice rss page for search topics but they did away with that a couple years ago. Now, they only have a rss page for The Print Edition and Blogs.

I was wondering if someone can create a rss page from their search page sorted by date?

For example if I want to use the term "New Zealand"
, the url would be this.

https://www.economist.com/search?q=n...land&sort=date

https://www.economist.com/search?q=new zealand&sort=date&page=1
https://www.economist.com/search?q=new zealand&sort=date&page=2
https://www.economist.com/search?q=new zealand&sort=date&page=3

https://www.economist.com/search?q=n...rt=date&page=1
https://www.economist.com/search?q=n...rt=date&page=2
https://www.economist.com/search?q=n...rt=date&page=3

I listed several sample URL links because I don't know which URL would get the most articles.

term "Artificial Intelligence"
https://www.economist.com/search?q=a...ence&sort=date

term "Bitcoin"
https://www.economist.com/search?q=bitcoin&sort=date

Can we add two or more topics on 1 recipe separated by tabs?

Thanks!
hongho71 is offline   Reply With Quote
Old 05-07-2023, 01:25 PM   #2
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 51
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
re: uploaded a recipe with titles but don't know how to fetch the articles

Hello,

I uploaded an economist search recipe using the term "ChatGPT" and was able to get the titles but don't know how to fetch the "Full" article. Anybody willing to take a crack at this? Thanks and would be very much appreciated if it is possible!
Attached Files
File Type: recipe The Economist Search1.recipe (1.6 KB, 162 views)
hongho71 is offline   Reply With Quote
Advert
Old 05-08-2023, 01:47 AM   #3
unkn0wn
Fanatic
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 542
Karma: 82944
Join Date: May 2021
Device: kindle
use username field for search.
Attached Files
File Type: recipe The Economist - Search.recipe (10.8 KB, 153 views)
unkn0wn is offline   Reply With Quote
Old 05-08-2023, 08:08 AM   #4
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 51
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
Hello, the recipe shows that you need a login? Is that true? Just trying to determine why it doesn't work for me since I don't have a login. Thanks!
hongho71 is offline   Reply With Quote
Old 05-08-2023, 08:25 AM   #5
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 51
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
I managed to acquire a login and it still doesn't work. The only thing I changed according to the instructions is the username

search = self.username.replace('chatgpt', '+')
hongho71 is offline   Reply With Quote
Advert
Old 05-08-2023, 11:47 AM   #6
unkn0wn
Fanatic
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 542
Karma: 82944
Join Date: May 2021
Device: kindle
don't edit the code.. just type your search term in the username field in fetch news section after loading the recipe.
unkn0wn is offline   Reply With Quote
Old 05-08-2023, 12:50 PM   #7
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 51
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
Wow, it works!!! Thank you very much!!! This is a great feature!! I changed the sort order in the code to 'date' rather than 'revelance' which makes more sense to me. Again, thanks again!!
hongho71 is offline   Reply With Quote
Old 05-11-2023, 03:55 PM   #8
Joe Oliver
Junior Member
Joe Oliver began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2023
Device: none
I am a computer novice. Could you please advise me on where to add search terms specifically?
Joe Oliver is offline   Reply With Quote
Old 05-12-2023, 01:38 AM   #9
unkn0wn
Fanatic
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 542
Karma: 82944
Join Date: May 2021
Device: kindle
Have you ever used subscription based recipes!

after loading the recipe to custom sources, go to fetch news, select the recipe. You'll see Account (required) on the right side, type your search in the Username field there and download.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2023-05-12 100419.png
Views:	215
Size:	31.1 KB
ID:	201501  
unkn0wn is offline   Reply With Quote
Old 05-12-2023, 07:50 AM   #10
Joe Oliver
Junior Member
Joe Oliver began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2023
Device: none
Thank you very much. The problem is successfully and timely solved. May you have a good day!
Joe Oliver is offline   Reply With Quote
Old 08-12-2024, 11:03 AM   #11
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 51
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
This recipe doesn't fetch the full article anymore. Maybe only 1 paragraph.

I noticed this on The Economist main rss feed too.
https://www.economist.com/rss

All the links only fetches the first paragraph of a news article.
hongho71 is offline   Reply With Quote
Old 08-13-2024, 02:43 PM   #12
unkn0wn
Fanatic
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 542
Karma: 82944
Join Date: May 2021
Device: kindle
you could add code to this recipe to fetch article content from archive.is
unkn0wn is offline   Reply With Quote
Old 08-13-2024, 10:32 PM   #13
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 51
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
Hi unk0wn, python programming is outside of my expertise. This is a recipe you created for us (see above). Thanks.
hongho71 is offline   Reply With Quote
Old 08-25-2024, 10:18 AM   #14
unkn0wn
Fanatic
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 542
Karma: 82944
Join Date: May 2021
Device: kindle
https://github.com/kovidgoyal/calibr...102149d823fa56
unkn0wn is offline   Reply With Quote
Old 08-27-2024, 10:14 AM   #15
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 51
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
Tried the new recipe. Edited the search options on line 226 for text search, line 231 for sort and line 236 for number of pages. Works well. Thank you!
hongho71 is offline   Reply With Quote
Reply

Tags
economist, recipe, rss, search


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request: The Economist Espresso Recipe EddyNottingham Recipes 6 04-25-2022 12:06 AM
Request for The Economist Explains and debates Nishant Thakur Recipes 0 01-12-2017 10:41 AM
The Economist Recipe NSILMike Recipes 6 05-20-2016 08:40 AM
Economist recipe... RobbieW Recipes 2 10-03-2013 06:01 PM
Economist recipe jdomingos76 Recipes 1 03-08-2011 09:33 AM


All times are GMT -4. The time now is 01:07 AM.


MobileRead.com is a privately owned, operated and funded community.