I have recently noticed that the show-chat.py stopped working. A little investigation revealed that from now on the BTC-e site requires you to pass valid cookies to access its web-pages (not API). Cookies are set both using Set-Cookie header and document.cookie=... javascript code.
This pull-request adds a cookie variable to the BTCEConnection, which is automatically set whenever makeRequest is called with with_cookie=True. I would rather prefer to use cookielib instead of regular expressions, however cookielib doesn't work well with the httplib module.
I have recently noticed that the show-chat.py stopped working. A little investigation revealed that from now on the BTC-e site requires you to pass valid cookies to access its web-pages (not API). Cookies are set both using
Set-Cookie
header anddocument.cookie=...
javascript code.This pull-request adds a
cookie
variable to theBTCEConnection
, which is automatically set whenevermakeRequest
is called withwith_cookie=True
. I would rather prefer to usecookielib
instead of regular expressions, howevercookielib
doesn't work well with thehttplib
module.