SHARE
TWEET

Untitled

a guest Oct 3rd, 2017 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. """
  2. $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  3. $     /$$$$$$  /$$                                                                        $
  4. $    /$$__  $$| $$                                                                        $
  5. $   | $$  \__/| $$$$$$$   /$$$$$$   /$$$$$$  /$$   /$$  /$$$$$$  /$$  /$$  /$$  /$$$$$$   $
  6. $   | $$      | $$__  $$ |____  $$ /$$__  $$| $$  | $$ |____  $$| $$ | $$ | $$ /$$__  $$  $
  7. $   | $$      | $$  \ $$  /$$$$$$$| $$  \ $$| $$  | $$  /$$$$$$$| $$ | $$ | $$| $$$$$$$$  $
  8. $   | $$    $$| $$  | $$ /$$__  $$| $$  | $$| $$  | $$ /$$__  $$| $$ | $$ | $$| $$_____/  $
  9. $   |  $$$$$$/| $$  | $$|  $$$$$$$| $$$$$$$/|  $$$$$$/|  $$$$$$$|  $$$$$/$$$$/|  $$$$$$$  $
  10. $    \______/ |__/  |__/ \_______/| $$____/  \______/  \_______/ \_____/\___/  \_______/  $
  11. $                                 | $$                                                    $
  12. $                                 | $$                                                    $
  13. $                                 |__/                                                    $
  14. $                                                                                         $
  15. $                      Scripting by Zack Dasti and Colaborators                           $
  16. $                                Version: beta 0.1.8                                      $
  17. $                                                                                         $
  18. $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  19. """
  20.  
  21. from time import sleep
  22. from selenium import webdriver
  23. from selenium.webdriver.common.by import By
  24. from selenium.webdriver.common.keys import Keys
  25. from selenium.common.exceptions import NoSuchElementException
  26.  
  27. print "Iniciando"
  28. driver = webdriver.PhantomJS()
  29. print "Bot Iniciado"
  30. driver.get('https://mobile.twitter.com/login')
  31. print "Jakiando Pagina"
  32.  
  33. password = driver.find_element_by_css_selector('input[type=password]')
  34. username = driver.find_element_by_name('session[username_or_email]')
  35. submit = driver.find_element_by_name('commit')
  36.  
  37. password.send_keys('hola')
  38. username.send_keys('onedirection')
  39. submit.click()
  40.  
  41. sleep(5)
  42.  
  43. print driver.page_source.encode("utf-8")
  44. print driver.current_url
  45.  
  46. print "\n\nPagina Jakeada"
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