Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  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. 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.send_keys('hola')
  36. username.send_keys('onedirection')
  37. submit.click()
  38.  
  39. sleep(5)
  40.  
  41. print driver.page_source.encode("utf-8")
  42. print driver.current_url
  43.  
  44. print "\n\nPagina Jakeada"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement