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 01-16-2019, 06:10 PM   #1
nikkumba
Junior Member
nikkumba began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2019
Device: Kindle Paperwhite 10th
Help fixing Chicago Tribune Recipe

I have used calibre for years and love it, but I am new to using calibre to add news to my kindle. I would really like to get the Chicago Tribune, but it does not seem to fetch the news correctly. I tried other recipes, like NYT and CNN, and they work great. The Chicago Tribune, however, is pretty much a blank book with a couple headers. I am not a programmer, so I have failed, so far, by tinkering with the code. I uploaded the "fetched" newspaper I get for the Chicago Tribune.

I tried updating the links in the recipe with RSS links I found online but that did not help.

Quote:
feeds = [
('Breaking news', 'https://www.chicagotribune.com/news/local/breaking/rss2.0.xml'),
('Trending news', 'https://www.chicagotribune.com/news/trending/rss2.0.xml'),
('Opinion', 'https://www.chicagotribune.com/news/opinion/rss2.0.xml'),
('Business news', 'https://www.chicagotribune.com/business/rss2.0.xml'),
('Sports', 'https://www.chicagotribune.com/sports/rss2.0.xml'),
('Arts and Entertainment',
'https://www.chicagotribune.com/entertainment/rss2.0.xml'),
('Life & Style',
'https://www.chicagotribune.com/lifestyles/rss2.0.xml'),
]
Once again, I am not a programmer so I do not really know what I am doing.
Please help a fellow Calibre supporter!

Thanks!
Attached Files
File Type: mobi Chicago Tribune - calibre.mobi (108.9 KB, 120 views)
nikkumba is offline   Reply With Quote
Old 01-16-2019, 11:39 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...be462c038df6ae
kovidgoyal is offline   Reply With Quote
Old 01-17-2019, 12:29 AM   #3
nikkumba
Junior Member
nikkumba began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2019
Device: Kindle Paperwhite 10th
Quote:
Originally Posted by kovidgoyal View Post
Thanks Kovid! You are awesome!

The only hiccup is that the file is over 60 MB (too big to automatically email to my kindle)

I figured all the images were probably the issue. I wasn't sure how to reduce the number of articles it downloaded so I just deleted what I thought is the image part:

Quote:
def preprocess_html(self, soup):
for img in soup.findAll('img', attrs={'data-baseurl': True}):
img['src'] = img['data-baseurl']
return soup
It is now under 2 MBs and it transferred to my kindle just fine. Thanks again for your help!

nikkumba is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free (Kindle) Chicago Tribune Guide to Chicago: Bars, Museums, Sports, More… [Travel] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 1 03-02-2015 06:53 AM
More Chicago Tribune antics - recipe broken again cornfieldcraig Recipes 10 03-05-2012 08:50 PM
Recipe for Chicago Tribune Printers Row? Sydney's Mom Recipes 0 02-26-2012 05:26 PM
Chicago Tribune Recipe appears broken cornfieldcraig Recipes 4 02-02-2012 10:43 PM
Chicago Tribune Recipe not selecting full article cornfieldcraig Recipes 3 09-29-2011 02:31 AM


All times are GMT -4. The time now is 01:41 PM.


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