start working on chat capability
This commit is contained in:
parent
0c425a2e9b
commit
8344824970
4 changed files with 109 additions and 17 deletions
|
|
@ -362,3 +362,8 @@ class BaseBrowser(mechanize.Browser):
|
|||
self[field] = value
|
||||
except ClientForm.ControlNotFoundError:
|
||||
return
|
||||
|
||||
def post_request(self, url, data, headers):
|
||||
headers['User-Agent'] = self.USER_AGENT
|
||||
req = urllib2.Request(url, urllib.urlencode(data), headers)
|
||||
return urllib2.urlopen(req)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue