6.87 v1.1


SUBMITTED BY: zola18

DATE: April 16, 2016, 8:01 p.m.

FORMAT: Text only

SIZE: 769 Bytes

HITS: 1030

  1. import datetime
  2. import urllib
  3. import sys
  4. import os
  5. import platform
  6. blogPage = "http://blog.dota2.com"
  7. hypeString = "Hype is building"
  8. clearCommand = "clear"
  9. if (platform.system() == 'Windows'):
  10. clearCommand = 'cls'
  11. while True:
  12. page = urllib.urlopen(blogPage).read()
  13. if "6.87" in page:
  14. print("6.87-related post detected at" + strftime("%a, %d %b %Y %H:%M:%S +0000", localtime())[:25])
  15. break
  16. else:
  17. time.sleep(3)
  18. hypeString += "."
  19. sys.stdout.flush();
  20. if (hypeString[17:] == "..."):
  21. hypeString = "Hype is building."
  22. os.system(clearCommand)
  23. print(hypeString);
  24. webbrowser.open(blogPage)
  25. webbrowser.open("http://www.youtube.com/watch?v=-kcOpyM9cBg&t=7m21s")
  26. print("MAXIMUM HYPE ACHIEVED")

comments powered by Disqus