Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-01-2011, 05:56 PM   #1
brian9000
Junior Member
brian9000 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2011
Device: none
Academic Libraries and Recipes

I am affiliated with a university with an excellent library. We have loads of digital content that is remotely accessible via VPN and proxy server. I was wondering if anyone else out there had thought of -- or actually created -- recipes (particularly for news from the Economist, NYTimes, WSJ, etc.) that only download after authentication through a proxy or VPN. For example, at my university we don't have to deal with the paywall on the NYTimes website, obviating the need for login and passwords.

Any thoughts?
brian9000 is offline   Reply With Quote
Old 12-02-2011, 09:16 AM   #2
PatStapleton
Member
PatStapleton began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2011
Location: Australia
Device: Kindle 4
Well I don't know how the proxy works at your uni but I wrote a recipe that uses my university's access using the following:
Spoiler:
Code:
#LOGIN
    def get_browser(self):
        br = BasicNewsRecipe.get_browser()
        br.open('http://ipacez.nd.edu.au/login?url=http://www.mja.com.au')
        br.select_form(nr=0)
        br['user'] = self.username
        br['pass'] = self.password
        br.submit()
        return br


And then I later had to append the proxy to the url so it would re-route and pickup the authentication like so:
Spoiler:
Code:
curarticle.url = curarticle.url.replace('http://www.mja.com.au', 'http://www.mja.com.au.ipacez.nd.edu.au')


That full recipe is here: https://www.mobileread.com/forums/sho...d.php?t=157692

Anyway I hope that helps, or at least gives you some ideas .
PatStapleton is offline   Reply With Quote
Advert
Reply

Tags
calibre, proxy, recipe, vpn


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduled Custom News Recipes Disappear When Switching Libraries Tegan Calibre 13 01-29-2011 07:21 AM
academic ereading carminis Which one should I buy? 29 04-23-2010 11:12 AM
Ebooks & academic libraries: a study Nate the great News 0 12-01-2009 08:38 PM
Academic titles Gianfranco Bookeen 5 08-09-2008 12:10 PM
Academic .pdfs Pets0undz Sony Reader 8 04-26-2007 07:40 AM


All times are GMT -4. The time now is 05:55 AM.


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