![]() |
#1426 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Epicurious: A recipe for recipes
Here is my first recipe attempt - for those who like to cook. The first two feeds are recipes and the second two are food and gourmet related, with some recipes linked in.
|
![]() |
![]() |
#1427 |
Member
![]() Posts: 11
Karma: 10
Join Date: Feb 2010
Device: Kindle
|
Thanks for the responses.
Also, I simply added "s" to the http for both the instapaper and nytimes recipes (for the login calls). It should be as obviously simple as that to protect my password, no? Last edited by cscannella; 02-12-2010 at 07:54 AM. Reason: added question |
![]() |
Advert | |
|
![]() |
#1428 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
That will only work for the sites that actually support secure http since that support is in no way mandatory. Instapaper does support https so it will work for that site.
|
![]() |
![]() |
#1429 |
Connoisseur
![]() Posts: 81
Karma: 50
Join Date: Jan 2010
Device: Kindle DX
|
hi all
Anyone has succesfully built a recipe for SQL Server Magazine and Oracle Magazine? http://www.sqlmag.com/ http://www.oracle.com/oramag/index.html any help would be appreciated |
![]() |
![]() |
#1430 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Nov 2009
Location: Poland
Device: kindle 1st gen, kindle dxg, kindle paperwhite2
|
Hello,
I'd like to ask for inclusion of my recipe to future calibre releases: http://github.com/t3d/kalibrator/raw/master/eksiazki.recipe More to come ![]() Last edited by t3d; 02-12-2010 at 03:33 PM. |
![]() |
Advert | |
|
![]() |
#1431 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
NBC Olympics 2010
Here is a quick and dirty Winter Olympics recipe.
It's based on a U.S. site, and I'm not sure if that site blocks non-U.S. access. Code:
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2010, Starson17' ''' www.nbcolympics.com ''' from calibre.web.feeds.news import BasicNewsRecipe class Olympics_2010(BasicNewsRecipe): title = u'NBC Olympics 2010' __author__ = 'Starson17' description = 'Olympics 2010' cover_url = 'http://www.digitaljournal.com/img/1/1/2/1/i/4/7/6/o/WinterOlympics2010-logo.jpg' publisher = 'Olympics 2010' tags = 'Olympics news' language = 'en' use_embedded_content = False no_stylesheets = True remove_javascript = True # recursions = 3 oldest_article = 7 max_articles_per_feed = 10 keep_only_tags = [dict(name='div', attrs={'class':['Article ','ArticleGallery']}), ] remove_tags = [dict(name='div', attrs={'id':['RelatedTagsBox','ShareBox']}), dict(name='div', attrs={'class':['DateUtilities','PhotoGallery BoxRight','Frame','ToolBox']}), ] # RSS feeds are at: http://www.nbcolympics.com/rss/index.html feeds = [ ('NBCOlympics.com - News', 'http://www.nbcolympics.com/rss/newscenter/mostpopular.xml'), ('NBCOlympics.com - News - Top Stories', 'http://www.nbcolympics.com/rss/newscenter/topstories.xml'), ('NBCOlympics.com - News - Latest Headlines', 'http://www.nbcolympics.com/rss/newscenter/latestnews.xml'), # ('NBCOlympics.com - Photos', 'http://www.nbcolympics.com/rss/photos/mostpopular.xml'), # ('NBCOlympics.com - Photos - Editorial Picks', 'http://www.nbcolympics.com/rss/photos/editorialpicks.xml'), # ('NBCOlympics.com - Photos - Latest Slideshows', 'http://www.nbcolympics.com/rss/photos/latestslideshows.xml'), ('NBCOlympics.com - Team USA - Latest news', 'http://www.nbcolympics.com/rss/countries/team-usa/index.xml'), # ('NBCOlympics.com - Team USA - Latest Slideshows', 'http://www.nbcolympics.com/rss/countries/team-usa/photos/index.xml'), # ('NBCOlympics.com - Team USA - Video', 'http://www.nbcolympics.com/rss/countries/team-usa/video/index.xml'), # ('NBCOlympics.com - Alpine Skiing - Most Popular News', 'http://www.nbcolympics.com/rss/sport=AS/mostpopular.xml'), # ('NBCOlympics.com - Alpine Skiing - Top News', 'http://www.nbcolympics.com/rss/sport=AS/topnews.xml'), ('NBCOlympics.com - Alpine Skiing - Latest News', 'http://www.nbcolympics.com/rss/sport=AS/latestnews.xml'), # ('NBCOlympics.com - Biathlon - Most Popular News', 'http://www.nbcolympics.com/rss/sport=BT/mostpopular.xml'), # ('NBCOlympics.com - Biathlon - Top News', 'http://www.nbcolympics.com/rss/sport=BT/topnews.xml'), ('NBCOlympics.com - Biathlon - Latest News', 'http://www.nbcolympics.com/rss/sport=BT/latestnews.xml'), # ('NBCOlympics.com - Bobsled - Most Popular News', 'http://www.nbcolympics.com/rss/sport=BS/mostpopular.xml'), # ('NBCOlympics.com - Bobsled - Top News', 'http://www.nbcolympics.com/rss/sport=BS/topnews.xml'), ('NBCOlympics.com - Bobsled - Latest News', 'http://www.nbcolympics.com/rss/sport=BS/latestnews.xml'), # ('NBCOlympics.com - Cross-Country - Most Popular News', 'http://www.nbcolympics.com/rss/sport=CC/mostpopular.xml'), # ('NBCOlympics.com - Cross-Country - Top News', 'http://www.nbcolympics.com/rss/sport=CC/topnews.xml'), ('NBCOlympics.com - Cross-Country - Latest News', 'http://www.nbcolympics.com/rss/sport=CC/latestnews.xml'), # ('NBCOlympics.com - Curling - Most Popular News', 'http://www.nbcolympics.com/rss/sport=CU/mostpopular.xml'), # ('NBCOlympics.com - Curling - Top News', 'http://www.nbcolympics.com/rss/sport=CU/topnews.xml'), ('NBCOlympics.com - Curling - Latest News', 'http://www.nbcolympics.com/rss/sport=CU/latestnews.xml'), # ('NBCOlympics.com - Figure Skating - Most Popular News', 'http://www.nbcolympics.com/rss/sport=FS/mostpopular.xml'), # ('NBCOlympics.com - Figure Skating - Top News', 'http://www.nbcolympics.com/rss/sport=FS/topnews.xml'), ('NBCOlympics.com - Figure Skating - Latest News', 'http://www.nbcolympics.com/rss/sport=FS/latestnews.xml'), # ('NBCOlympics.com - Freestyle Skiing - Most Popular News', 'http://www.nbcolympics.com/rss/sport=FR/mostpopular.xml'), # ('NBCOlympics.com - Freestyle Skiing - Top News', 'http://www.nbcolympics.com/rss/sport=FR/topnews.xml'), ('NBCOlympics.com - Freestyle Skiing - Latest News', 'http://www.nbcolympics.com/rss/sport=FR/latestnews.xml'), # ('NBCOlympics.com - Hockey - Most Popular News', 'http://www.nbcolympics.com/rss/sport=IH/mostpopular.xml'), # ('NBCOlympics.com - Hockey - Top News', 'http://www.nbcolympics.com/rss/sport=IH/topnews.xml'), ('NBCOlympics.com - Hockey - Latest News', 'http://www.nbcolympics.com/rss/sport=IH/latestnews.xml'), # ('NBCOlympics.com - Luge - Most Popular News', 'http://www.nbcolympics.com/rss/sport=LG/mostpopular.xml'), # ('NBCOlympics.com - Luge - Top News', 'http://www.nbcolympics.com/rss/sport=LG/topnews.xml'), ('NBCOlympics.com - Luge - Latest News', 'http://www.nbcolympics.com/rss/sport=LG/latestnews.xml'), # ('NBCOlympics.com - Nordic Combined - Most Popular News', 'http://www.nbcolympics.com/rss/sport=NC/mostpopular.xml'), # ('NBCOlympics.com - Nordic Combined - Top News', 'http://www.nbcolympics.com/rss/sport=NC/topnews.xml'), ('NBCOlympics.com - Nordic Combined - Latest News', 'http://www.nbcolympics.com/rss/sport=NC/latestnews.xml'), # ('NBCOlympics.com - Short Track - Most Popular News', 'http://www.nbcolympics.com/rss/sport=ST/mostpopular.xml'), # ('NBCOlympics.com - Short Track - Top News', 'http://www.nbcolympics.com/rss/sport=ST/topnews.xml'), ('NBCOlympics.com - Short Track - Latest News', 'http://www.nbcolympics.com/rss/sport=ST/latestnews.xml'), # ('NBCOlympics.com - Skeleton - Most Popular News', 'http://www.nbcolympics.com/rss/sport=SN/mostpopular.xml'), # ('NBCOlympics.com - Skeleton - Top News', 'http://www.nbcolympics.com/rss/sport=SN/topnews.xml'), ('NBCOlympics.com - Skeleton - Latest News', 'http://www.nbcolympics.com/rss/sport=SN/latestnews.xml'), # ('NBCOlympics.com - Ski Jumping - Most Popular News', 'http://www.nbcolympics.com/rss/sport=SJ/mostpopular.xml'), # ('NBCOlympics.com - Ski Jumping - Top News', 'http://www.nbcolympics.com/rss/sport=SJ/topnews.xml'), ('NBCOlympics.com - Ski Jumping - Latest News', 'http://www.nbcolympics.com/rss/sport=SJ/latestnews.xml'), # ('NBCOlympics.com - Snowboarding - Most Popular News', 'http://www.nbcolympics.com/rss/sport=SB/mostpopular.xml'), # ('NBCOlympics.com - Snowboarding - Top News', 'http://www.nbcolympics.com/rss/sport=SB/topnews.xml'), ('NBCOlympics.com - Snowboarding - Latest News', 'http://www.nbcolympics.com/rss/sport=SB/latestnews.xml'), # ('NBCOlympics.com - Speed Skating - Most Popular News', 'http://www.nbcolympics.com/rss/sport=AS/mostpopular.xml'), # ('NBCOlympics.com - Speed Skating - Top News', 'http://www.nbcolympics.com/rss/sport=AS/topnews.xml'), ('NBCOlympics.com - Speed Skating - Latest News', 'http://www.nbcolympics.com/rss/sport=AS/latestnews.xml'), ] extra_css = ''' h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;} h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;} p{font-family:Arial,Helvetica,sans-serif;font-size:small;} body{font-family:Helvetica,Arial,sans-serif;font-size:small;} ''' |
![]() |
![]() |
#1432 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Flash slideshow code?
Has anyone written code, or is it in any recipe, to grab .jpg images from a flash slideshow? I took a look at html code from the Olympic site above and found an embedded link to :
Code:
http://www.nbcolympics.com/code/flash/photogallery.swf?path=http://www.nbcolympics.com/xmlfeed/photogallery/newsid=412282.xml Spoiler:
and by changing the m03 to m02 of the .jpg links I get the large photos. Has anyone written a recipe to do this or anything similar? Thanks. (BTW, these links go to photos relating to the training accident that killed a luger. They just happened to be the first on the list of flash photo slideshow links.) Edit: If this hasn't been done, I'd appreciate thoughts on a reasonable approach to doing this. I was thinking of using an approach like this: 1) the feed has to have use_embedded_content = False to make sure that it goes to the flash slideshow page; 2) then process that page with preprocess_html and BeautifulSoup to remove everything but the link to the page that has the links to the images; 3) then follow to that second page and process it with postprocess_html and BeautifulSoup to display all the images. This puts an extra page between the images and the feed link, but that could probably be removed with more work. Comments? Last edited by Starson17; 02-13-2010 at 02:33 PM. |
![]() |
![]() |
#1433 |
Member
![]() Posts: 11
Karma: 10
Join Date: Feb 2010
Device: Kindle
|
Thanks. Definitely works for Instapaper, and it works for the NY Times as well.
|
![]() |
![]() |
#1434 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Feb 2010
Device: Kindle DX
|
You wonderful people would make this little econ geeks dream come true if I could get recipes for:
http://www.econbrowser.com/ http://www.calculatedriskblog.com/ http://www.nakedcapitalism.com/ |
![]() |
![]() |
#1435 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Naked capitalisam is already supported in calibre
|
![]() |
![]() |
#1436 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2010
Device: Sony PRS-505, Asus eeePC 1000H
|
Thanks very much, sorry for being late in replying, had some health difficulties.
Quote:
|
|
![]() |
![]() |
#1437 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Here is another Winter Olympics recipe. This one has nothing in it but photos and the headers/titles for the photos, so it can be quite large. Even with only 3 of the feeds turned on, this ebook is 25 MB in size.
Spoiler:
For convenience, here is the text-based recipe for the Olympics. Spoiler:
|
![]() |
![]() |
#1438 |
Groupie
![]() ![]() ![]() ![]() Posts: 153
Karma: 364
Join Date: Oct 2009
Location: Sweden
Device: Amazon Kindle 2 Intl
|
|
![]() |
![]() |
#1439 |
Connoisseur
![]() Posts: 57
Karma: 10
Join Date: Feb 2010
Device: Kindle Paperwhite 1
|
![]()
Hi guys,
I was searching quite a lot through the topic, but didn't manage to find the exact solution. I need to have a google reader recipe, which will pick up only starred items from the feed (no need for tagging and or storing it all in sub folders, just plain simple starred items). If I understand correctly that's how default google recipe used to work. Can it be done? thank you. |
![]() |
![]() |
#1440 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2010
Device: none
|
Greetings, I've been searching and around and saw a couple of requests for a NY Daily News recipe. Does anyone know if such a beast exists? If so, could you point me to it?
Thanks, Sam |
![]() |
![]() |
|
![]() |
||||
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 |