![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2011
Device: Kindle
|
Using Internet Explorer to download in Calibre
Calibre's recipe for a few newspapers ( like WSJ ) allows for user to provide login for full version access. My institution provides access to some of these sites via cookies ( You visit a custom Url that sets cookie in IE for x days for which one will have full access to the sites on that machine using IE)
Is there a way to configure calibre to use IE ( or IE cookies ) to download news pages ? |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
I wrote some code like this for Google Reader authentication that you can look at. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 83
Karma: 499304
Join Date: Jul 2011
Device: Kindle
|
A cookie is just a text string though, so Tacit can read the content of the cookie (possible to do in all browsers) and then set the cookie in the recipe. You could also make the cookie last forever unless they specifically blocked that on the server end.
As for setting a cookie it is done by using get_browser() in calibre to fetch the browser object and then set the cookie by creating a "cookie jar" and adding a cookie to it - Calibre uses the "mechanize" python browser. Please see this for further documentation and help: http://wwwsearch.sourceforge.net/mechanize/ |
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 83
Karma: 499304
Join Date: Jul 2011
Device: Kindle
|
Quote:
![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2011
Device: Kindle
|
Thanks folks. I did not say (or know if ) it works Only on IE. All I was trying to say was that the access to sites are provided using cookie method. I visit site http://www.internalsite.net/provider=newspaper and it redirects and sets a cookie after which I am able to access the newspaper using the browser.
You guys have suggested using the get_browser() method, but a bit more details would help given I'm not very technical, but interested in getting this working. Thanks a ton ! Tacit |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
iPhone The Guardian UK: The iPhone is the new Internet Explorer 6, says mobile developer | kjk | Apple Devices | 24 | 02-10-2010 07:32 AM |
Internet Explorer 7 pre-Beta 2 available for download | MrSaint | Lounge | 1 | 02-02-2006 08:40 AM |
Internet Explorer 7 will have tabs - will Firefox users switch back? | Colin Dunstan | Lounge | 9 | 03-16-2005 08:38 AM |
Internet Explorer in Windows XP SP2 - more secure? | Alexander Turcic | Lounge | 1 | 08-11-2004 07:22 AM |