Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 05-19-2010, 03:39 PM   #1951
gambarini
Connoisseur
gambarini began at the beginning.
 
Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
vvv.ilmessaggero.it

better viewing, new cover image

the cover show the First Page of the NewsPaper.

vvv.leggo.it

better viewing, new cover image

the cover show the First Page of the NewsPaper.
Attached Files
File Type: zip IlMessaggero.zip (1.1 KB, 87 views)
File Type: zip Leggo_it.zip (1.0 KB, 92 views)

Last edited by gambarini; 05-19-2010 at 03:50 PM.
gambarini is offline  
Old 05-19-2010, 06:49 PM   #1952
k27star
Junior Member
k27star began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2010
Device: Kindle 2
Local News Paper - The Register Guard Help

Hi! I'm coming out of my lurking state to ask for some help. I have tried making a custom recipe for my local paper (The Register Guard), but since the feeds run through feedburner I'm having quite a bit of difficulty due to my lack of technical skills.

Any help would be greatly appreciated. If you have any suggestions on what code to use to work with feedburner or if you can easily whip up a full custom recipe, I'd really appreciate whatever I can get!

The feeds can be found here:

http://www2.registerguard.com/cms/in...ges/feeds/#rss

I was hoping to do all of them except the Springfield Extra. Thanks again!
k27star is offline  
Old 05-19-2010, 10:11 PM   #1953
DesktopGeneral
Junior Member
DesktopGeneral began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2010
Device: Kindle 2
I've been trying to get this recipe to work for the newspaper Roll Call. The only thing that is not working is the print version return. I'm still getting the full version. Any help would be appreciated. I don't know python, but I pieced this together form other recipes.

The recipe is below

class AdvancedUserRecipe1273837220(BasicNewsRecipe):
title = u'Roll Call'
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True
use_embedded_content = False
needs_subscription = True

feeds = [(u'Roll Call', u'http://www.rollcall.com/issues/index.xml')]

def get_browser(self):
br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None:
br.open('http://www.rollcall.com/login')
br.select_form(name='login_form')
br['login_id'] = self.username
br['login_pwd'] = self.password
br.submit('submit')
return br

def print_version(self, url):
return url + '?type=printer_friendly'
DesktopGeneral is offline  
Old 05-20-2010, 02:37 AM   #1954
gambarini
Connoisseur
gambarini began at the beginning.
 
Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
Quote:
Basically, you use the parse_index method when you want to control the title, description and/or date on that page, and already know the URL. A common use is when you can't parse an RSS feed automatically, and have to parse a web page to get the URL. However, I've never actually used it for that. Instead, I use it when I can figure out the URL in advance, because it's simple and there is no page or RSS feed. (I believe I used it for several comics recipes to pull the previous comics). Those recipes should be in this thread somewhere under my name.
I have the correct link, but no the title; so, i must override the title tag (that is null) with the correct title, obtained from the downloaded article.
I'll try;
my next step is to create a recipe that fetch from site with complete pdf newspaper to merge the real newspaper (in pdf) and the html version on the site.

Now i have in beta test () 3 or 4 recipe on blog about hardware/software and android.

as soon as possible...
gambarini is offline  
Old 05-20-2010, 02:39 AM   #1955
gambarini
Connoisseur
gambarini began at the beginning.
 
Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
Quote:
Originally Posted by DesktopGeneral View Post
I've been trying to get this recipe to work for the newspaper Roll Call. The only thing that is not working is the print version return. I'm still getting the full version. Any help would be appreciated. I don't know python, but I pieced this together form other recipes.

The recipe is below

class AdvancedUserRecipe1273837220(BasicNewsRecipe):
title = u'Roll Call'
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True
use_embedded_content = False
needs_subscription = True

feeds = [(u'Roll Call', u'http://www.rollcall.com/issues/index.xml')]

def get_browser(self):
br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None:
br.open('http://www.rollcall.com/login')
br.select_form(name='login_form')
br['login_id'] = self.username
br['login_pwd'] = self.password
br.submit('submit')
return br

def print_version(self, url):
return url + '?type=printer_friendly'
try this:
Code:
def print_version(self, url):
       link =url + '?type=printer_friendly'
       print link
and look yourself if something wrong.
gambarini is offline  
Old 05-20-2010, 06:46 AM   #1956
DesktopGeneral
Junior Member
DesktopGeneral began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2010
Device: Kindle 2
Roll Call Recipe

Quote:
def print_version(self, url):
link =url + '?type=printer_friendly'
print link
Thanks for the response. Unfortunately, that does not work. With that, the recipe returns nothing. Completely blank. Any other ideas?

Here is the recipe again.

Code:
class AdvancedUserRecipe1273837220(BasicNewsRecipe):
    title = u'Roll Call'
    oldest_article = 7
    max_articles_per_feed = 100
    no_stylesheets = True
    use_embedded_content  = False    
    needs_subscription = True
    
    feeds 	= [(u'Roll Call', u'http://www.rollcall.com/issues/index.xml')]

    def get_browser(self):
	br = BasicNewsRecipe.get_browser()
	if self.username is not None and self.password is not None:
		br.open('http://www.rollcall.com/login')
		br.select_form(name='login_form')
		br['login_id']   = self.username
		br['login_pwd'] = self.password
		br.submit('submit')
	return br

    def print_version(self, url):
	return url + '?type=printer_friendly
DesktopGeneral is offline  
Old 05-20-2010, 07:15 AM   #1957
cscannella
Member
cscannella began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Feb 2010
Device: Kindle
Quote:
Originally Posted by kiklop74 View Post
Updated recipe for instapaper.com:
Will this be packaged into an update of Calibre?
cscannella is offline  
Old 05-20-2010, 07:31 AM   #1958
gambarini
Connoisseur
gambarini began at the beginning.
 
Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
Quote:
Originally Posted by DesktopGeneral View Post
Thanks for the response. Unfortunately, that does not work. With that, the recipe returns nothing. Completely blank. Any other ideas?
The print instruction is a debug metod; launch the recipe from calibre, then view the log of the job.
In the log you can see the valour of the variable LINK (print LINK ! ! ), so you can look yourself what is wrong.

Actually return blank because there isn't the instruction "RETURN LINK".

Last edited by gambarini; 05-20-2010 at 08:00 AM.
gambarini is offline  
Old 05-20-2010, 09:12 AM   #1959
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: 780
Karma: 194642
Join Date: Dec 2007
Location: Argentina
Device: Kindle PaperWhite, Motorola Xoom
Quote:
Originally Posted by cscannella View Post
Will this be packaged into an update of Calibre?
Yes. Kovid will do that.
kiklop74 is offline  
Old 05-20-2010, 06:03 PM   #1960
cscannella
Member
cscannella began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Feb 2010
Device: Kindle
Quote:
Originally Posted by kiklop74 View Post
Yes. Kovid will do that.
Excellent. Thanks for the response!
cscannella is offline  
Old 05-21-2010, 04:22 AM   #1961
gambarini
Connoisseur
gambarini began at the beginning.
 
Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
Quote:
Originally Posted by gambarini View Post
vvv.ilmessaggero.it

better viewing, new cover image

the cover show the First Page of the NewsPaper.

vvv.leggo.it

better viewing, new cover image

the cover show the First Page of the NewsPaper.
Another slightly modify to the recipe for Leggo (it)

and for the recipe Libero-News
Attached Files
File Type: zip libero.zip (956 Bytes, 81 views)
File Type: zip Leggo_it.zip (1.0 KB, 85 views)

Last edited by gambarini; 05-21-2010 at 07:34 AM.
gambarini is offline  
Old 05-21-2010, 05:24 AM   #1962
gambarini
Connoisseur
gambarini began at the beginning.
 
Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
Now i try to include in all recipe (when exist) the first page of the printed newspaper.
In my opinion it's a good preview of the content of the recipe.
gambarini is offline  
Old 05-21-2010, 08:35 AM   #1963
dfigueroa
La Guera en Manzanillo
dfigueroa is on a distinguished road
 
dfigueroa's Avatar
 
Posts: 33
Karma: 50
Join Date: May 2010
Location: Manzanillo, Colima, Mexico
Device: Kindle 2 Global
Okay, I'm officially a clueless newbie...I actually thought this was a thread on recipes for food, rofl.
dfigueroa is offline  
Old 05-21-2010, 09:13 AM   #1964
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by dfigueroa View Post
Okay, I'm officially a clueless newbie...I actually thought this was a thread on recipes for food, rofl.
It's not, but we do have some posts in this thread on recipes (Calibre-style) for recipes (food)! Search for Epicurious, or see the Epicurious built-in recipe.
Starson17 is offline  
Old 05-21-2010, 06:52 PM   #1965
nook.life
Member
nook.life began at the beginning.
 
Posts: 12
Karma: 10
Join Date: May 2010
Device: Nook
Cyanide & Happiness?

Any update on creating a recipe for this? Thanks so much guys, I really appreciate all of the hard work you do to help us out!!!


Quote:
Originally Posted by nook.life View Post
Could someone please make a recipe for Cyanide & Happiness?

I have tried and miserably failed. The problem is that the RSS feed does not include any comics like xkcd does and I have not been able to find a feed that does.

The website is http://www.explosm.net/comics/
and the RSS is: http://feeds.feedburner.com/Explosm

I know someone requested this recipe yesterday in the wrong thread
http://www.mobileread.com/forums/sho...nide+happiness

but it did not seem to make it on here. Thanks!
nook.life is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:24 AM.


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