![]() |
#601 |
Junior Member
![]() 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 |
![]() |
![]() |
#602 |
Junior Member
![]() 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 |
![]() |
![]() |
#603 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
|
![]() |
![]() |
#604 |
Junior Member
![]() 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 |
![]() |
![]() |
#605 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
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 |
|
![]() |
![]() |
#606 |
Junior Member
![]() 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 |
![]() |
![]() |
#607 |
Member
![]() Posts: 19
Karma: 12
Join Date: Jun 2009
Location: Singapore
Device: Sony PRS-505, Nexus One, Nikon D700, Smartq V7
|
|
![]() |
![]() |
#608 |
Junior Member
![]() 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 |
![]() |
![]() |
#609 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
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' |
|
![]() |
![]() |
#610 |
Junior Member
![]() 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. |
![]() |
![]() |
#611 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
|
|
![]() |
![]() |
#612 |
Member
![]() 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? |
![]() |
![]() |
#613 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
#614 |
Reader Newb
![]() 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 |
![]() |
![]() |
#615 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,289
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
|
![]() |
||||
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 |