Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- $ /$$$$$$ /$$ $
- $ /$$__ $$| $$ $
- $ | $$ \__/| $$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$ $
- $ | $$ | $$__ $$ |____ $$ /$$__ $$| $$ | $$ |____ $$| $$ | $$ | $$ /$$__ $$ $
- $ | $$ | $$ \ $$ /$$$$$$$| $$ \ $$| $$ | $$ /$$$$$$$| $$ | $$ | $$| $$$$$$$$ $
- $ | $$ $$| $$ | $$ /$$__ $$| $$ | $$| $$ | $$ /$$__ $$| $$ | $$ | $$| $$_____/ $
- $ | $$$$$$/| $$ | $$| $$$$$$$| $$$$$$$/| $$$$$$/| $$$$$$$| $$$$$/$$$$/| $$$$$$$ $
- $ \______/ |__/ |__/ \_______/| $$____/ \______/ \_______/ \_____/\___/ \_______/ $
- $ | $$ $
- $ | $$ $
- $ |__/ $
- $ $
- $ Scripting by Zack Dasti and Colaborators $
- $ Version: beta 0.1.8 $
- $ $
- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- """
- from selenium import webdriver
- from selenium.webdriver.common.by import By
- from selenium.webdriver.common.keys import Keys
- from selenium.common.exceptions import NoSuchElementException
- print "Iniciando"
- driver = webdriver.PhantomJS()
- print "Bot Iniciado"
- driver.get('https://mobile.twitter.com/login')
- print "Jakiando Pagina"
- password = driver.find_element_by_css_selector('input[type=password]')
- username = driver.find_element_by_name('session[username_or_email]')
- submit = driver.find_element_by_name('commit')
- password.send_keys('hola')
- username.send_keys('onedirection')
- submit.click()
- sleep(5)
- print driver.page_source.encode("utf-8")
- print driver.current_url
- print "\n\nPagina Jakeada"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement