![]() |
#1 |
Nameless Being
|
Recipe Help - Indianapolis Star
Hi,
This is a weird one. The recipe for the Indianapolis seems to work fine and previews perfectly in Calibre. However, when it transfers to the Kindle, the articles are cut off. That is, only the first paragraph shows up. Here is the recipe: from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1234144423(BasicNewsRecipe): title = u'Indianapolis Star' oldest_article = 5 language = 'en' __author__ = 'Owen Kelly' max_articles_per_feed = 100 cover_url = u'http://www2.indystar.com/frontpage/images/today.jpg' feeds = [(u'Community Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=LOCAL&template=rss'), (u'News Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=NEWS&template=rss'), (u'Business Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=BUSINESS&template=rss'), (u'Politics and Government', u'http://www.indystar.com/apps/pbcs.dll/section?Category=NEWS05&template=rss'), (u'Lifestyle Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=LIVING&template=rss&mime=XML'), (u'Opinion Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=OPINION&template=rss&mime=XML')] def print_version(self, url): return url + '&template=printart' |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2012
Device: Kindle 3
|
Bump, Exact same problem here. Would one of the experts on here please have a look and help us out? Maybe kovidgoyal or kiklop74. This is my local newspaper so it would be very appreciated if someone could lend a hand. Thanks in advance.
Kindle 3 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
doofus
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,543
Karma: 13088847
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
|
I just tried it. It looks fine on my kindle 3. I did add auto_cleanup = True
Code:
from calibre.web.feeds.recipes import BasicNewsRecipe class IndianapolisStar(BasicNewsRecipe): title = u'Indianapolis Star' oldest_article = 10 auto_cleanup = True language = 'en' __author__ = 'Owen Kelly' max_articles_per_feed = 100 cover_url = u'http://www2.indystar.com/frontpage/images/today.jpg' feeds = [(u'Community Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=LOCAL&template=rss'), (u'News Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=NEWS&template=rss'), (u'Business Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=BUSINESS&template=rss'), (u'Politics and Government', u'http://www.indystar.com/apps/pbcs.dll/section?Category=NEWS05&template=rss'), (u'Lifestyle Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=LIVING&template=rss&mime=XML'), (u'Opinion Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=OPINION&template=rss&mime=XML') ] def print_version(self, url): return url + '&template=printart' |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2012
Device: Kindle 3
|
Thank you very much for your reply. Here is an update. Out of curiosity I went ahead and downloaded the the Star again without your addition. This time it works for some reason even though to recipe looks identical to when it didn't work???? Except two things are now different than all of the other times that it did not work. First there were a bunch of funny looking characters in the text that looked sort of like question marks. That was remedied after I added the "auto_cleanup = True" to the recipe like you suggested. The second thing that is different now is that at the beginning of every article it says "www.indystar.com l Printer-friendly article page" in big letters. I don't ever recall seeing that before when it didn't work. At least the articles aren't cut off, and I don't turn the first page of every article just to find it blank from there on. So my next question, is there a way to remove this "www.indystar.com l Printer-friendly article page" at the beginning of every article or is it not feasible. Thanks
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Recipe works when mocked up as Python file, fails when converted to Recipe | ode | Recipes | 7 | 09-04-2011 04:57 AM |
Recipe for Kansas City Star | jgordon | Calibre | 2 | 02-27-2010 03:02 PM |
Indianapolis Public Schools Replace Textbooks with Digital Content (THE Journal) | Nate the great | News | 1 | 01-15-2010 08:18 PM |
hello Indianapolis | anders_babs1 | Introduce Yourself | 7 | 03-30-2009 03:17 PM |
Star Trek vs. Star Wars | daffy4u | Lounge | 48 | 12-04-2008 10:06 AM |