![]() |
#1 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Sep 2013
Location: DE
Device: Linux PC's, Android devices, Amazon Fire HD10
|
New Recipe - google news - i wonder why it isn't here
Hi again,
as i say above, i wonder why there is no google news feed recipe! Everyone 'googles' information! So i wrote a recipe which everyone could modify to his needs ![]() ![]() I upload two samples here: First one is - regards to Kovid Goyal - a google news feed with indian content. It's THIS one. |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Sep 2013
Location: DE
Device: Linux PC's, Android devices, Amazon Fire HD10
|
The same recipe for a german user
And hi again,
here is the same source for a german news content. Look here THIS one. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Sep 2013
Location: DE
Device: Linux PC's, Android devices, Amazon Fire HD10
|
letz do a look inside
Whats happend here?
Code:
class google_news_sample(BasicNewsRecipe): # variables you should change to fit your requests! # here are a sample for an english speaking user intrested in ebook content and news from Denver Colorado # searchfor = 'ebook' # a serarch topic, filled into the string below. You can change that to anything google news should be searched for... my_language_id = 'en' # may us, de, or other.... change this if you want location = 'DenverCo' # Titel of the Recipe - this is a sample title = 'Google News sample' cover_url = 'https://upload.wikimedia.org/wikipedia/commons/thumb/d/da/Google_News_icon.svg/500px-Google_News_icon.svg.png' # Author __author__ = 'Volker Heggemann, VoHe' # delete some stuff here # feel free to add, wipe out what you need ---- can be edit by user # feeds = [ ('Google news for '+location, 'https://news.google.com/news/rss/headlines/section/geo/'+location), ('Google news intrested in '+searchfor, 'https://news.google.com/news?cf=all&hl='+my_language_id+'+&pz=1&ned='+my_language_id+'&q='+searchfor+'&output=rss'), ] Code:
('Google news for '+location,'https://news.google.com/news/rss/headlines/section/geo/'+location) Code:
('Google news for DenverCo','https://news.google.com/news/rss/headlines/section/geo/DenverCo') Code:
('Google news intrested in '+searchfor,'https://news.google.com/news?cf=all&hl='+my_language_id+'+&pz=1&ned='+my_language_id+'&q='+searchfor+'&output=rss') Code:
('Google news intrested in ebook','https://news.google.com/news?cf=all&hl=en+&pz=1&ned=en&q=ebook&output=rss') So if YOU change the variables at the beginning (and may you need the news.google.com URL to the one of your country) you can get news for any place and any theme you intressted in. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,310
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Sep 2013
Location: DE
Device: Linux PC's, Android devices, Amazon Fire HD10
|
That's i reason i understand.
But that people using the recipies, could do this i guess.... But, may you are right, there should be a ready to uses google news recipe... wait, i test something... |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Sep 2013
Location: DE
Device: Linux PC's, Android devices, Amazon Fire HD10
|
Google News, ready to use recipe
Hi folks,
may this is what 'they' want. With a little Python code the recipe get the location for your IP address. And from this point, there is a chance to load the google news feeds. In this sample i build a newspaper of three themes: Google Topnews for your country code ('de' in my case) Google news for your local city (a town in lower saxony in my case) Google news for a keyword you set inside the recipe (i set 'computer' here) and et voila, you got offline, whats mostly online works correct. Is this usable?! |
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Sep 2013
Location: DE
Device: Linux PC's, Android devices, Amazon Fire HD10
|
oh, i forgot.
I name the title in recipe with the variable country_code. In my case the recipe will be named as Google News de. For someone from England, it will be named as Goolge News en |
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,658
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,310
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Google News Recipe? | awitko | Recipes | 6 | 11-03-2011 12:15 AM |
calibre v08.19 the News Schedule isn't working. | JayKindle | Calibre | 8 | 09-18-2011 04:17 AM |
Google Apps for Domains - Google Reader recipe tweak | bdillahu | Recipes | 0 | 04-13-2011 10:47 PM |
The Moscow Times recipe isn't working. | girlperson1 | Calibre | 4 | 12-01-2008 06:42 AM |
Missing features: Gutenberg, Google Books, Google News, open RSS aggregator | Charbax | Amazon Kindle | 10 | 11-22-2007 08:22 PM |