![]() |
#1141 |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Dec 2008
Location: Germany
Device: SONY PRS-500
|
Recipe for Think Progress
Hi,
I'm attaching a recipe for Think Progress, a site that serves as a forum to advance progressive ideas and policies. Enjoy... XG |
![]() |
![]() |
#1142 |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Dec 2008
Location: Germany
Device: SONY PRS-500
|
Need Recipe for MIT Technology Review
Hi,
I've given up on coming up with a good recipe for MIT's Technology Review at: http://www.technologyreview.com/ Questions: Some of the reports at MIT Technology Review are split across multiple pages. How do you deal with that? In the middle of some of the articles, a line stating "Story continues below" occurs along with an advertisement. How do I cut that out? The site has a print option for each article, but it uses the article id number in each of the print URLs. How would I deal with that? I hope someone will improve my recipe and post it here so that I can see how to solve the problems I ran into. Thanks... XG My recipe follows: from calibre.web.feeds.news import BasicNewsRecipe class MITtechnologyReview(BasicNewsRecipe): title = u'MIT Technology Review' __author__ = u'Xanthan Gum' description = 'Technology news from MIT' no_stylesheets = True remove_tags_before = dict(id='articlebody') remove_tags_after = dict(name='h3') oldest_article = 7 max_articles_per_feed = 100 feeds = [(u'Top Stories', u'http://feeds.technologyreview.com/technology_review_top_stories'), (u'Computing', u'http://feeds.technologyreview.com/technology_review_Computing'), (u'Web', u'http://feeds.technologyreview.com/technology_review_Web'), (u'Communications', u'http://feeds.technologyreview.com/technology_review_Communications'), (u'Energy', u'http://feeds.technologyreview.com/technology_review_Energy'), (u'Materials', u'http://feeds.technologyreview.com/technology_review_Materials'), (u'Biomedicine', u'http://feeds.technologyreview.com/technology_review_Biotech'), (u'Business', u'http://feeds.technologyreview.com/technology_review_Biztech')] |
![]() |
![]() |
#1143 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
|
|
![]() |
![]() |
#1144 |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Dec 2008
Location: Germany
Device: SONY PRS-500
|
Where to find all of the recipes
|
![]() |
![]() |
#1145 |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Dec 2008
Location: Germany
Device: SONY PRS-500
|
Recipes found
|
![]() |
![]() |
#1146 |
Member
![]() Posts: 23
Karma: 12
Join Date: Jan 2010
Location: Edinburgh, UK
Device: SONY PRS600, Apple iPhone 3G
|
Hi Brian, i did change the recipe for the CSM, but after looking at the Atlantic seems quite different and the types of content offered (current issues and 'voices' from the correspondents); as nobody seems to jump on it, i will look into it
lorenzo |
![]() |
![]() |
#1147 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2010
Device: htc hero
|
Quote:
Thanks for the suggestion. As Krittika wrote, there is a chance for the recipe in the next release. In the mean tiime I would like to try to go further with my first recipe. I do not understand why their print version is hard to get at. It's true - I can not get it with web2disk but wget dowloads it properly. Can you please explain where is difficulty? /wdrwc |
|
![]() |
![]() |
#1148 |
Connoisseur
![]() ![]() Posts: 78
Karma: 192
Join Date: Nov 2009
Device: Sony PRS-600
|
I do not understand it either. That is the 'sort of' part of the 'hard to get'. :-) But maybe it is just me. I tried wget as well, and the only thing I can think of is that calibre does not like the comma's in the url.
But I did not investigate that, because I saw another potential problem. For the print version you need o.a. to substitute a '1,' with a '2029020,' If that number is based on the year or changed for any other reason, the recipe will break. And as the original article is not that hard to get into shape, I think you you should go for that. |
![]() |
![]() |
#1149 | |
Vox calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 412
Karma: 1175230
Join Date: Jan 2009
Device: Sony reader prs700, kobo
|
Quote:
|
|
![]() |
![]() |
#1150 |
Member
![]() Posts: 23
Karma: 12
Join Date: Jan 2010
Location: Edinburgh, UK
Device: SONY PRS600, Apple iPhone 3G
|
the Atlantic is working
Hi Brian,
it might sound a stupid question, but what version of calibre are you using? i'm usin 0.6.33 therefore can't say if it is the case for other, but i have just used the atlantic recipe as it is and it seems to work fine for me (see attached). this recipe is very intriguing as it parses the index of the current issue page and compiles a list of articles from there. ![]() however i noticed that on the actual site there are some sections which allow you to use RSS feeds. i'm not sure if it is possible to mix feeds with the current recipe - Kovid will know the answer to this and those python expert out there. lorenzo |
![]() |
![]() |
#1151 | |
Vox calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 412
Karma: 1175230
Join Date: Jan 2009
Device: Sony reader prs700, kobo
|
Quote:
He said the epub can probably be viewed in calibre but not on the sony reader. I am not sure of the reason but it has something to do with the html of the page and how epub is more sensitive to it than mobi. He said he maintains this recipe quite well usually as he reads it himself. |
|
![]() |
![]() |
#1152 |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2009
Location: Halifax, Nova Scotia
Device: Sony PRS-300
|
Thanks for your help Lorenzo...the recipe for The Atlantic worked as of early January...but it seemed to stop working properly in the last week or so...not sure if The Atlantic changed its site or?
Brian |
![]() |
![]() |
#1153 |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2009
Location: Halifax, Nova Scotia
Device: Sony PRS-300
|
I'm using the latest version of Calibre but as Krittika suggests maybe it's an issue with my Sony reader....would love to find a solution, as it is also one of my regular reads.
Brian |
![]() |
![]() |
#1154 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,384
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@Briand: I just downloaded the atlantic onto my 600 and it works fine. Try it again.
|
![]() |
![]() |
#1155 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2009
Device: Kindle 2 Global Wireless
|
Hello, first many many thanks for all recipes, I would like to read on my kindle 2 this spanish paper, if you have time it would be nice if you make a recipe, many thanks!!!
http://www.nortecastilla.es/rss/feeds/ |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom column read ? | pchrist7 | Calibre | 2 | 10-04-2010 02:52 AM |
Archive for custom screensavers | sleeplessdave | Amazon Kindle | 1 | 07-07-2010 12:33 PM |
How to back up preferences and custom recipes? | greenapple | Calibre | 3 | 03-29-2010 05:08 AM |
Donations for Custom Recipes | ddavtian | Calibre | 5 | 01-23-2010 04:54 PM |
Help understanding custom recipes | andersent | Calibre | 0 | 12-17-2009 02:37 PM |