View Single Post
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