View Single Post
Old 07-22-2011, 10:11 AM   #4
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by zapt0 View Post
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/
Yes, that's how it's done (there's no need to explicitly set the cookie jar or use mechanize unless you need to modify the cookies or want to track them for debugging, as get_browser does it all for you), but he seemed to be saying that only IE worked (I suspect it's not true, but one can't be sure).
Starson17 is offline   Reply With Quote