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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-19-2012, 02:20 AM   #1
barium
Connoisseur
barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.
 
Posts: 96
Karma: 20572
Join Date: Sep 2010
Device: None
Alter built-in recipe for IP-based authentication

I have access to the full text of a news site through my institution. Instead of logging in with a user name and password, I click a login link, which sets several cookies (I think) and gives me access to the site.

Calibre has a built-in recipe for subscribers to the site. The built-in recipe doesn't retrieve the full text of articles for me.

I tried replacing the login section of the built-in recipe with the following, which didn't work:

def get_browser(self):
br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None:
br.open('[institutional link]')
br.open('http://online.[x].com/home-page')
return br

That didn't do the trick. (I entered dummy information in the recipe's login fields, as I think my change makes the login fields uselesS).

Do you have any thoughts on how I can get the recipe working with my access method?
barium is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
USA Today built in recipe problem on Kindle3 t0s Recipes 12 02-03-2012 08:08 PM
Utne Reader built-in recipe not working dexy Recipes 0 08-30-2011 05:56 PM
Tricky problem with built-in recipe - need your help.... :( stachuman Recipes 3 05-04-2011 03:08 PM
Adding a feed to the built-in NY Times recipe t0s Recipes 3 03-03-2011 11:26 AM
Fetch Hartford Courant based on Tribune recipe Being Calibre 6 12-27-2009 09:54 AM


All times are GMT -4. The time now is 12:28 PM.


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