Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. while True:
  2. try:
  3. xmldata = "<eventSubscribe cookie="%s" />" % (self.cookie)
  4. r = requests.post(post_url,data=xmldata,stream=False,verify=False,timeout=10)
  5. write_to_file('Ok',r.text)
  6. unsubevents()
  7. logout()
  8. except Exception as e:
  9. print e
  10. self.write_to_file('Ok',"")
  11. self.login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement