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 01-22-2010, 11:51 AM   #1231
geneaber
Connoisseur
geneaber doesn't littergeneaber doesn't litter
 
Posts: 82
Karma: 118
Join Date: Dec 2005
Device: Kindle 2
Is there a recipe for all the articles that do not appear in the print edition of the Economist? If not, can someone create one?
geneaber is offline  
Old 01-22-2010, 12:20 PM   #1232
XanthanGum
Connoisseur
XanthanGum began at the beginning.
 
XanthanGum's Avatar
 
Posts: 51
Karma: 10
Join Date: Dec 2008
Location: Germany
Device: SONY PRS-500
Recipe for Editor and Publisher

Hi,

I'm attaching a zipped file that contains a recipe for "Editor and Publisher" a site that presents news about newspaper publishing and journalism.

Enjoy...

XG
Attached Files
File Type: zip editiorAndPublisher.zip (764 Bytes, 162 views)
XanthanGum is offline  
Advert
Old 01-22-2010, 12:27 PM   #1233
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
A recipe for a free content on The Week magazine page:
Attached Files
File Type: zip the_week_magazine_free.zip (1.2 KB, 172 views)
kiklop74 is offline  
Old 01-22-2010, 02:11 PM   #1234
exdream
Junior Member
exdream began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2010
Device: Sony PRS-505
I want to make a recipe for http://szmobil.sueddeutsche.de/ and started with this code:

from calibre.web.feeds.recipes import BasicNewsRecipe

class AdvancedUserRecipe1263738133(BasicNewsRecipe):
title = u'S\xfcddeutsche Zeitung'
oldest_article = 7
max_articles_per_feed = 100
description = 'Mobile Ausgabe'
language = 'de'

needs_subscription = True

def get_browser(self):
br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None:
br.open('http://szmobil.sueddeutsche.de/login.php')
br.select_form(nr=0)
br['username'] = self.username
br['password'] = self.password
br.submit()
return br

feeds = [
(u'Sueddeutsche Zeitung', u'http://szmobil.sueddeutsche.de/index.php')
]
and got the complete html-code of the website on the web-page I entered as feed.

Seems that I aditionally have to process the html-code somehow. But at the moment I don't have any idea which classes and methods I have to use for that. Please help!

Thanks,
Gero
exdream is offline  
Old 01-22-2010, 02:12 PM   #1235
geneaber
Connoisseur
geneaber doesn't littergeneaber doesn't litter
 
Posts: 82
Karma: 118
Join Date: Dec 2005
Device: Kindle 2
Quote:
Originally Posted by kiklop74 View Post
A recipe for a free content on The Week magazine page:
Excellent. Thanks!
geneaber is offline  
Advert
Old 01-22-2010, 05:52 PM   #1236
evanmaastrigt
Connoisseur
evanmaastrigt doesn't litterevanmaastrigt doesn't litter
 
Posts: 78
Karma: 192
Join Date: Nov 2009
Device: Sony PRS-600
Quote:
Originally Posted by nickredding View Post
evanmaastrigt--if you could test this in your locale I'd appreciate it.
Works like a charm. It does not save much in time, but I do not think their is a workaround for that. But the file size is much smaller, which my reader likes much better.
evanmaastrigt is offline  
Old 01-23-2010, 05:42 AM   #1237
Over
Wizard
Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.
 
Over's Avatar
 
Posts: 1,462
Karma: 6061516
Join Date: May 2008
Location: Cascais, Portugal
Device: Kindle PW, Samsung Galaxy Note Pro 12.2", OnePlus 6
Could someone make a recipe for http://www.ionline.pt/conteudos/rss.html , please?
For some reason, Calibre can't make anything from those xml files.

Thank you.
Over is offline  
Old 01-23-2010, 05:59 AM   #1238
exdream
Junior Member
exdream began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2010
Device: Sony PRS-505
Quote:
Originally Posted by exdream View Post
I want to make a recipe for http://szmobil.sueddeutsche.de/ and started with this code:

from calibre.web.feeds.recipes import BasicNewsRecipe

class AdvancedUserRecipe1263738133(BasicNewsRecipe):
title = u'S\xfcddeutsche Zeitung'
oldest_article = 7
max_articles_per_feed = 100
description = 'Mobile Ausgabe'
language = 'de'

needs_subscription = True

def get_browser(self):
br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None:
br.open('http://szmobil.sueddeutsche.de/login.php')
br.select_form(nr=0)
br['username'] = self.username
br['password'] = self.password
br.submit()
return br

feeds = [
(u'Sueddeutsche Zeitung', u'http://szmobil.sueddeutsche.de/index.php')
]
and got the complete html-code of the website on the web-page I entered as feed.

Seems that I aditionally have to process the html-code somehow. But at the moment I don't have any idea which classes and methods I have to use for that. Please help!

Thanks,
Gero
Quote:
Originally Posted by evanmaastrigt View Post
Calibre has a built-in recipe for the Süddeutschen Zeitung. It seems to work pretty well. But if you want modifications/enhancements post your request in the sticky 'Custom Recipes' thread.
Many Thanks to evanmaastrigt for the answer to my first post. Sorry for posting in the wrong thread. I didn't realize immediately that this here is the right one.
The built in recipe for Sueddeutsche Zeitung works great, I know. The reason for this request is that the built in recipe is for the free contents of SZ and not for the ePaper (1:1 copy of the newspaper). Some parts of the newspaper are missing in the free parts, e.g. things called "Meinungsseite" or "Seite drei". These contents are my favorites in the paper edition.
exdream is offline  
Old 01-23-2010, 06:53 AM   #1239
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
A recipe for the National Review Online and associated blogs:
Attached Files
File Type: zip nationalreviewonline.zip (1.8 KB, 173 views)
DoctorOhh is offline  
Old 01-23-2010, 07:36 AM   #1240
evanmaastrigt
Connoisseur
evanmaastrigt doesn't litterevanmaastrigt doesn't litter
 
Posts: 78
Karma: 192
Join Date: Nov 2009
Device: Sony PRS-600
Quote:
Originally Posted by exdream View Post
The reason for this request is that the built in recipe is for the free contents of SZ and not for the ePaper (1:1 copy of the newspaper).
If you PM me your account info, I'll have a look at it.
evanmaastrigt is offline  
Old 01-23-2010, 10:21 AM   #1241
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 Over View Post
Could someone make a recipe for http://www.ionline.pt/conteudos/rss.html , please?
For some reason, Calibre can't make anything from those xml files.

Thank you.
New recipe for ionline.pt:
Attached Files
File Type: zip ionline.zip (1.8 KB, 167 views)
kiklop74 is offline  
Old 01-23-2010, 10:45 AM   #1242
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
A recipe for Hot Air:
Attached Files
File Type: zip hotair.recipe.zip (1.2 KB, 181 views)
DoctorOhh is offline  
Old 01-23-2010, 10:57 AM   #1243
tnronin
Zealot
tnronin doesn't littertnronin doesn't littertnronin doesn't litter
 
tnronin's Avatar
 
Posts: 118
Karma: 210
Join Date: Jan 2010
Location: Mid-Tennessee
Device: PRS-300
Quote:
Originally Posted by dwanthny View Post
A recipe for the National Review Online and associated blogs:
I copied and pasted to the recipe window. No joy. What did I do wrong?
tnronin is offline  
Old 01-23-2010, 11:13 AM   #1244
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
A new recipe for the Greensboro News & Record
Attached Files
File Type: zip GreensboroNewsandRecord.zip (1.3 KB, 167 views)
DoctorOhh is offline  
Old 01-23-2010, 11:21 AM   #1245
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by tnronin View Post
I copied and pasted to the recipe window. No joy. What did I do wrong?
Unzip the the files into a directory.

Open Calibre
Drop down arrow next to Fetch news
Add custom news source
Load recipe from file (select nationalreviewonline.recipe)

I just followed these steps to verify things.

Good Luck

&
DoctorOhh 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 04:24 AM.


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