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 07-15-2009, 02:46 AM   #601
f1doc
Junior Member
f1doc began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2009
Device: sony prs 505
New England Journal of Medicine

Hello everyone. I'm new to this fabulous program. I'm an official paid subscriber to the New England Journal of Medicine. I made a recipe for Calibre to pick up each week's issue, using the RSS feed. This works fine . . . EXCEPT that the links to the articles go to an article summary, and not the full text. How can I tweak the recipe to have calibre download the full text and not just the article summary?

If necessary I can provide my details so this can be tested.

Thanks SO much for this great program!
-Gary
f1doc is offline  
Old 07-15-2009, 07:12 AM   #602
f1doc
Junior Member
f1doc began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2009
Device: sony prs 505
I added the print_version for the full version of the articles, but now i need to enter my username and password corresponding to my subscription, in order to access the articles that are only available to subscribers. where do i do this in the recipe? what are the necessary python commands?

thanks in advance
f1doc is offline  
Old 07-15-2009, 08:27 AM   #603
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
See here the documentation:

http://calibre.kovidgoyal.net/user_manual/news.html
kiklop74 is offline  
Old 07-15-2009, 08:40 AM   #604
f1doc
Junior Member
f1doc began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2009
Device: sony prs 505
thanks but...

Hi kiklop!

I've read over this lots of times, and i admit it's a bit over my head. i can see that i need to add the log in stuff, but honestly, i'm not quite tech-savvy enough for this. i'm an anesthetist and emergency doctor, so i'm not stupid, but this stuff DOES get complicated

so any advice you can give me, stuff i can almost copy/paste, would be SO appreciated.

thanks again!
-Gary
f1doc is offline  
Old 07-15-2009, 08:50 AM   #605
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 f1doc View Post
Hi kiklop!

I've read over this lots of times, and i admit it's a bit over my head. i can see that i need to add the log in stuff, but honestly, i'm not quite tech-savvy enough for this. i'm an anesthetist and emergency doctor, so i'm not stupid, but this stuff DOES get complicated

so any advice you can give me, stuff i can almost copy/paste, would be SO appreciated.
Add this to your recipe and it should work:

Code:
    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://content.nejm.org/cgi/login?uri=%2F')
            br.select_form(nr=0)
            br['username'] = self.username
            br['code'    ] = self.password
            br.submit()
        return br
kiklop74 is offline  
Old 07-15-2009, 09:41 AM   #606
f1doc
Junior Member
f1doc began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2009
Device: sony prs 505
Thanks kiklop, but this doesnt do the trick. oh well! thanks for the work and time - it would be great to get this to work, but seems rather difficult!
-Gary
f1doc is offline  
Old 07-16-2009, 11:31 AM   #607
trektech
Member
trektech began at the beginning.
 
Posts: 19
Karma: 12
Join Date: Jun 2009
Location: Singapore
Device: Sony PRS-505, Nexus One, Nikon D700, Smartq V7
Quote:
Originally Posted by kiklop74 View Post
I forgot to add this

Code:
     use_embedded_content  = False
With that it will work
it does not work....
trektech is offline  
Old 07-17-2009, 03:21 AM   #608
GetSpiffed
Junior Member
GetSpiffed began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2009
Device: none
Hello,

Is there someone who can help me with a recipe for the various sections of the Dutch newspaper NRC:

http://www.nrc.nl/rss/binnenland
http://www.nrc.nl/rss/buitenland
http://www.nrc.nl/rss/economie
http://www.nrc.nl/rss/sport
http://www.nrc.nl/rss/wetenschap
http://www.nrc.nl/rss/kunst
http://www.nrc.nl/rss/media

I can't get them to work, getting a lot of unwantend garbage.

Thanks in advance...

Pepijn
GetSpiffed is offline  
Old 07-19-2009, 07:47 AM   #609
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 GetSpiffed View Post
Hello,

Is there someone who can help me with a recipe for the various sections of the Dutch newspaper NRC:

http://www.nrc.nl/rss/binnenland
http://www.nrc.nl/rss/buitenland
http://www.nrc.nl/rss/economie
http://www.nrc.nl/rss/sport
http://www.nrc.nl/rss/wetenschap
http://www.nrc.nl/rss/kunst
http://www.nrc.nl/rss/media

I can't get them to work, getting a lot of unwantend garbage.

Thanks in advance...

Pepijn

Create recipe in calibre in standard way, add all the feeds to that recipe and than click on advanced button.

Add this code:

Code:
    encoding              = 'cp1252'

    keep_only_tags = [dict(name='div', attrs={'class':'article clearfix'}) ]

    def print_version(self, url):
        return url + '?service=Print'
kiklop74 is offline  
Old 07-22-2009, 07:12 PM   #610
Alc
Junior Member
Alc began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2009
Location: UK
Device: Sony PRS-505
First off, Calibre is amazing - many thanks to kovidgoyal and all who've helped with it.

It's worked pretty much fine for most of what I've wanted to do with it so far (minor layout issues here and there, nothing major), but the RSS feed for Wired seems broken. It took 80 minutes (!) to come down, and then when opened each article only shows a login prompt and the comments. I wouldn't know where to start with patching the python code or whatever it is. I don't suppose some kind soul could point me in the direction of a fixed recipe thing, or tell me how to amend the one I've got?

Many thanks again.
Alc is offline  
Old 07-22-2009, 07:25 PM   #611
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 Alc View Post
First off, Calibre is amazing - many thanks to kovidgoyal and all who've helped with it.

It's worked pretty much fine for most of what I've wanted to do with it so far (minor layout issues here and there, nothing major), but the RSS feed for Wired seems broken. It took 80 minutes (!) to come down, and then when opened each article only shows a login prompt and the comments. I wouldn't know where to start with patching the python code or whatever it is. I don't suppose some kind soul could point me in the direction of a fixed recipe thing, or tell me how to amend the one I've got?

Many thanks again.
That is Kovid's recipe. Open a ticket for that in calibre's trac (calibre.kovidgoyal.net).
kiklop74 is offline  
Old 07-24-2009, 11:51 AM   #612
JIGACE
Member
JIGACE began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jul 2008
Device: EZ Reader Pocket Pro
Hi kiklop! i was wondering if you could help me... i been tryng to retrieve a blog, not the feed, because its incomplete but the actual feed, but i cant do it, i'm not very skilld on the programming stuff... could you help me? I need a recipe for a blog... a blogspot.com blog...

please?
JIGACE is offline  
Old 07-25-2009, 05:16 AM   #613
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
I'm too occupied with my daily job right now to do anything else. It will stay that way for some time.
kiklop74 is offline  
Old 07-25-2009, 09:06 PM   #614
amerryman
Reader Newb
amerryman began at the beginning.
 
amerryman's Avatar
 
Posts: 7
Karma: 10
Join Date: Jul 2009
Location: Las Vegas, Nv
Device: PRS505
Little Help Here

Just want to verify if I'm the only having a problem with Scientific America Recipe on my PRS-505 (causes reboot in .LRF format)

Add Wired Mag to that as well..

Last edited by amerryman; 07-25-2009 at 09:25 PM. Reason: Addition
amerryman is offline  
Old 07-26-2009, 12:42 AM   #615
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,289
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://calibre.kovidgoyal.net/user_m...eader-to-reset
kovidgoyal 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 06:56 PM.


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