Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 04-19-2009, 08:11 AM   #466
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Quote:
Originally Posted by ax42 View Post
@kiklop - I unfortunately can't run the Vreme recipe (requires a login). Does it result in a page with only one link on it called "Articles"? My code (concidentally) seems to be quite close to what you suggested already (unless I'm missing something). The recipe for the Atlantic also results in a single page with a "Current Issue" link, which comes from the way parse_index passes back the list of feeds.
That's the way it works. For anything else you will have to generate your opf file as Kovid suggested. I still do not see why does it bother you so much?
kiklop74 is offline  
Old 04-19-2009, 11:31 AM   #467
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: 45,389
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by ax42 View Post
@kiklop - thanks! I suspected I was busy trying to reinvent the wheel. I'll clean up my script in the next few days and post it.

@kovidgoyal - sounds interesting, is createpdf in the reference docs somewhere?

BTW, where can I report a bug/fix an error in the online docs? The docs for BasicNewsRecipe.get_feeds() says "Return a list of :term:RSS feeds" which looks like a bug. See http://calibre.kovidgoyal.net/user_m...cipe.get_feeds

Thanks again
ax42
You's have to read the source of BasicNewsRecipe you can file bug reports for the documentation in the same place as all ther calibre bug reports. In any case that bug is now fixed.
kovidgoyal is offline  
Old 04-19-2009, 12:09 PM   #468
ax42
Member
ax42 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2009
Location: Switzerland
Device: PRS505
Quote:
Originally Posted by kiklop74 View Post
That's the way it works. For anything else you will have to generate your opf file as Kovid suggested. I still do not see why does it bother you so much?
I'm a perfectionist I'm also enjoying getting into some coding again, so this is a nice challenge.

Are there docs somewhere to get me started on how to fiddle the opf file?
ax42 is offline  
Old 04-19-2009, 01:10 PM   #469
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: 45,389
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
just copy paste the create_opf function from the basicnewsrecipe class in the calibre source, then make the changes you need to it. Use the feeds2disk command to see your changes.
kovidgoyal is offline  
Old 04-20-2009, 12:22 AM   #470
jongalloway
Junior Member
jongalloway began at the beginning.
 
jongalloway's Avatar
 
Posts: 1
Karma: 10
Join Date: Apr 2009
Device: Kindle 2
Requests:
http://www.codinghorror.com/blog/
http://www.hanselman.com/blog/
http://blog.stackoverflow.com/

Thanks for such an awesome program!
jongalloway is offline  
Old 04-20-2009, 05:33 AM   #471
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
New recipes for blogs - Coding horror, stackoverflow and Hanselman's zen:
Attached Files
File Type: zip blogs.zip (6.5 KB, 241 views)
kiklop74 is offline  
Old 04-20-2009, 01:59 PM   #472
ax42
Member
ax42 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2009
Location: Switzerland
Device: PRS505
Zurich cinema

As promised, recipe to download current list of films running in Zurich.

Comments welcome.
Attached Files
File Type: zip zhkino.py.zip (906 Bytes, 244 views)
ax42 is offline  
Old 04-21-2009, 01:25 PM   #473
tnzshn
Member
tnzshn began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Apr 2009
Location: qingdao & shanghai, china
Device: prs 505
Fetching news web content fm non-rss site

for recipe, if I understand correctly, most of existing recipe work with RSS feeds. is there any recipe for common news website but do not have RSS feed for my reference? example url: http://www.nanfangdaily.com.cn/21cn/ it's in chinese.

Also, last time saw some people also ask for other chinese web fetching recipe of http://realtime.zaobao.com/realtime.shtml, someone helped to make one already?


Awaiting and thanks in adv.
tnzshn is offline  
Old 04-21-2009, 02:37 PM   #474
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Quote:
Originally Posted by tnzshn View Post
for recipe, if I understand correctly, most of existing recipe work with RSS feeds. is there any recipe for common news website but do not have RSS feed for my reference?
There are quite a few. For example The new york times, Vreme, Borba online, Glas Srpske, Harpers magazine articles from printed edition etc.

You can see example here in recipe documentation:

http://calibre.kovidgoyal.net/user_manual/news.html
kiklop74 is offline  
Old 04-22-2009, 03:17 PM   #475
laborg
Zealot
laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.
 
Posts: 105
Karma: 94000
Join Date: Oct 2007
Location: Vienna
Device: Cybook Gen3
Hi!
The attached Zip file includes 2 different recipes for Telepolis (German) One parses all articles the other only news.
Attached Files
File Type: zip telepolis.zip (2.3 KB, 244 views)
laborg is offline  
Old 04-22-2009, 03:36 PM   #476
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: 45,389
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What's the difference between the telepolis news recipe and the builtin recipe already in calibre?
kovidgoyal is offline  
Old 04-23-2009, 12:31 AM   #477
Boxdoc
Member
Boxdoc began at the beginning.
 
Posts: 23
Karma: 44
Join Date: Dec 2008
Device: Sony PRS - 700, Kindle 2
I'd like a recipe for The San Jose Mercury News.
Thanks!
Boxdoc is offline  
Old 04-23-2009, 02:28 AM   #478
laborg
Zealot
laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.laborg has top level security clearance to Area 51.
 
Posts: 105
Karma: 94000
Join Date: Oct 2007
Location: Vienna
Device: Cybook Gen3
Quote:
Originally Posted by kovidgoyal View Post
What's the difference between the telepolis news recipe and the builtin recipe already in calibre?

The Problem is that the news feed also contains articles and they have to be handled differently to be formatted correctly. Just try to download the magazin with the currently built in recipe and you will see that the formatting is messed up when. This is the only reason why I split up the recipes.
laborg is offline  
Old 04-23-2009, 02:37 AM   #479
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: 45,389
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by laborg View Post
The Problem is that the news feed also contains articles and they have to be handled differently to be formatted correctly. Just try to download the magazin with the currently built in recipe and you will see that the formatting is messed up when. This is the only reason why I split up the recipes.
Ah ok, makes sense. Updated.
kovidgoyal is offline  
Old 04-23-2009, 03:26 AM   #480
pubolab
Member
pubolab began at the beginning.
 
Posts: 17
Karma: 10
Join Date: May 2008
Device: CASIO pocket viewer S1600, Sony PRS-505 and Cybook Gen 3
Here is the recipe for zaobao.com

This is a Chinese language news paper published in Singapore

Tried lrf, epub and mobi
Attached Files
File Type: zip recipe_zaobao.zip (2.1 KB, 326 views)

Last edited by pubolab; 04-24-2009 at 09:14 AM.
pubolab is offline  
Closed Thread


Forum Jump

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


All times are GMT -4. The time now is 08:08 AM.


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