daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Apr 7th, 2010 481 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os
  2. import string
  3.  
  4. #Enter your username and password below within double quotes
  5. # eg. username="username" and password="password"
  6. username="username"
  7. password="thepassword"
  8.  
  9. com="wget -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate"
  10.  
  11. temp=os.popen(com)
  12. msg=temp.read()
  13. index=string.find(msg,"<fullcount>")
  14. index2=string.find(msg,"</fullcount>")
  15. fc=int(msg[index+11:index2])
  16.  
  17. if fc==0:
  18.    print "0"
  19. else:
  20.    print str(fc)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top