Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 4th, 2011  |  syntax: None  |  size: 0.46 KB  |  views: 83  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import os
  2.  
  3. #Enter your username and password below within double quotes
  4. # eg. username="username" and password="password"
  5. username="blablabla"
  6. password="blablabla"
  7. com="wget -q -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate"
  8.  
  9. temp=os.popen(com)
  10. msg=temp.read()
  11. index=msg.find("<fullcount>")
  12. index2=msg.find("</fullcount>")
  13. fc=int(msg[index+11:index2])
  14.  
  15. if fc==0:
  16.    print "0 new"
  17. else:
  18.    print str(fc)+" new"