07-04-2010, 11:04 AM | #2251 | |
Zealot
Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Quote:
I just went to check Today Online website RSS feed page http://www.todayonline.com/RSS/Hotnews and found that there is no feed on the page. Maybe they are updating the page now. We can check again later. Recipe for Bangkok Post does not work anymore. If the author doesn't fix it, I'll probably can take a look at it this weekend. Last edited by rty; 07-04-2010 at 11:17 AM. |
|
07-04-2010, 11:12 AM | #2252 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
http auth in mechanize is really easy there are examples here:
http://wwwsearch.sourceforge.net/mechanize/ |
07-04-2010, 11:26 AM | #2253 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
|
|
07-04-2010, 07:22 PM | #2254 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
|
|
07-05-2010, 07:53 AM | #2255 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
OK, I've set up a test environment, added some debug statements into the old GoogleReader recipe, and drafted a first attempt at the new login/auth procedure. As soon as I have a valid user/pass, I'll run some tests.
|
07-05-2010, 09:19 AM | #2256 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
The "star" thing described never worked. I always put whatever subscriptions I wanted to download in folders. The recipes treated each folder as a different feed and created a menu item for each.
|
07-05-2010, 09:31 AM | #2257 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Use print_version. Try this code: Code:
def print_version(self, url): match = re.search(r'PhotoGallery', url) if not match: return url |
|
07-05-2010, 09:35 AM | #2258 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
I assume this was for the builtin GoogleReader recipe - correct? There's also something called GoogleReader Uber. Is that involved in this?
|
07-05-2010, 01:04 PM | #2259 |
Zealot
Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
My humble little gift to folks up there in Alaska: Recipe for Anchorage Daily News.
|
07-05-2010, 09:09 PM | #2260 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Although the changes you make for Google Reader should work for Google reader Uber too. they both use the SID for login. Last edited by DoctorOhh; 07-05-2010 at 09:16 PM. |
|
07-05-2010, 09:58 PM | #2261 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2010
Device: Nook
|
Local Newspaper
Hi Guys I was trying to create a custom recipe for the local newspaper, Democrat and Chronicle. I found the print page and that works very fast with calibre. My problem is once it syncs onto my nook it will only display one page worth for each story and then cut off (sometimes even the bottom portion of the next sentence). I'm sure it is most likely some code snippet I am missing.
Any help would be greatly appreciated. Here is what I had Code:
class AdvancedUserRecipe1278352006(BasicNewsRecipe): title = u'Democrat and Chronicle' oldest_article = 1 max_articles_per_feed = 100 no_stylesheets = True feeds = [(u'Breaking news and top stories', u'http://www.democratandchronicle.com/apps/pbcs.dll/section?category=RSS&mime=xml'), (u'News', u'http://www.democratandchronicle.com/apps/pbcs.dll/section?category=RSS01&mime=xml'), (u'Bills', u'http://www.democratandchronicle.com/apps/pbcs.dll/section?category=SPORTS03&template=rss_dc&mime=xml'), (u'Business', u'http://www.democratandchronicle.com/apps/pbcs.dll/section?category=BUSINESS&template=rss_dc&mime=xml'), (u'Health', u'http://www.democratandchronicle.com/apps/pbcs.dll/section?category=HEALTH&template=rss_dc&mime=xml'), (u'Arts', u'http://www.democratandchronicle.com/apps/pbcs.dll/section?category=rssdcarts&mime=xml'), (u'Living', u'http://www.democratandchronicle.com/apps/pbcs.dll/section?category=LIVING&template=rss_dc&mime=xml'), (u'Opinions', u'http://www.democratandchronicle.com/apps/pbcs.dll/section?category=RSS04&mime=xml'), (u'Sports', u'http://www.democratandchronicle.com/apps/pbcs.dll/section?category=SPORTS&template=rss_dc&mime=xml')] def print_version(self, url): return url.replace('http://www.democratandchronicle.com/', 'http://www.democratandchronicle.com/print/') |
07-06-2010, 05:29 AM | #2262 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: sony prs600
|
Request for Timesonline and Sunday Times (UK)
The UK online editions of The Times and The Sunday Times are now subscription only. I have a subscription for both and would like to download on to my Sony PRS600. The existing custom recipe doesn't have the facility for sending the password - can any of the wizards on this forum help please?
The urls are: http://www.thetimes.co.uk/tto/news/ http://www.thesundaytimes.co.uk/sto/ The Calibre program is excellent - if Sony had any sense they should be throwing large sums of money at Kovid to allow them to ship Calibre with their products instead of the inferior Reader program. Thanks in advance. Mike |
07-06-2010, 02:49 PM | #2263 | |
Member
Posts: 12
Karma: 10
Join Date: May 2010
Device: Nook
|
Working Cyanide and Happiness Recipe (Explosm)
Quote:
Spoiler:
|
|
07-06-2010, 02:50 PM | #2264 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Calibre is licensed to all under GPL v.3. That means Sony wouldn't have to pay a dime to Kovid (or me or anyone else who has contributed to the Calibre code). OTOH, they would have to comply with the terms of GPL v.3.
|
07-06-2010, 03:12 PM | #2265 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Code:
remove_attributes = ['style'] Most recipes have optional settings, such as the number of comics to download, the number of articles to retrieve, etc. It would be nice to have a settings screen associated with the recipe (like the user/password) that can be set by the user when they schedule a builtin. The way it works now, the user has to load the builtin recipe in the recipe editor, modify the code, save the recipe, go to the News fetcher and schedule the user modified version. |
|
|
Similar Threads | ||||
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 |