SHARE
TWEET

Untitled

a guest Oct 3rd, 2017 55 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.6                                      $
  17. $                                                                                         $
  18. $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  19. """
  20. from selenium import webdriver
  21. from selenium.webdriver.common.by import By
  22. from selenium.webdriver.common.keys import Keys
  23. from selenium.common.exceptions import NoSuchElementException
  24.  
  25. print "Iniciando"
  26. driver = webdriver.PhantomJS()
  27. print "Bot Iniciado"
  28. driver.get('https://mobile.twitter.com/login')
  29. print "Jakiando Pagina"
  30.  
  31. password = driver.find_element_by_css_selector('input[type=password]')
  32. username = driver.find_element_by_name('session[username_or_email]')
  33. submit = driver.find_element_by_name('commit')
  34.  
  35. password.sendkeys('hola')
  36. username.sendkeys('onedirection')
  37. submit.click()
  38.  
  39. print driver.page_source.encode("utf-8")
  40. 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