Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- try:
- xmldata = "<eventSubscribe cookie="%s" />" % (self.cookie)
- r = requests.post(post_url,data=xmldata,stream=False,verify=False,timeout=10)
- write_to_file('Ok',r.text)
- unsubevents()
- logout()
- except Exception as e:
- print e
- self.write_to_file('Ok',"")
- self.login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement