SHARE
TWEET

Untitled

a guest Aug 12th, 2016 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def SignIn():#self
  2.     url = 'https://login.facebook.com/login.php?login_attempt=1'
  3.     data = "locale=en_US&non_com_login=&email="+str(Username)+"&pass="+str(Password)+"&lsd=20TOl"
  4.     cookie = cookielib.CookieJar()
  5.  
  6.     try:
  7.         opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cookie))
  8.     except:
  9.         sys.stderr.write("Unexpected error!".format(src))
  10.  
  11.     try:
  12.          opener.open('https://www.facebook.com')
  13.     except:
  14.          sys.stderr.write("Unexpected error!1")
  15.  
  16.     try:
  17.          opener.open(url, data)
  18.     except:
  19.         sys.stderr.write("Unexpected error!2")
  20.  
  21.     IsSignIned=True  
  22.     return opener
  23. Username=raw_input('prrrrt: ')
  24. Password=raw_input()
  25.  
  26. SignIn()
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