Last active
April 26, 2020 00:00
-
-
Save pranshuj73/f843b11d10ef81197757e53ff24ab66c to your computer and use it in GitHub Desktop.
code section 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from time import sleep | |
class Tweeter: | |
def login(self): | |
username = "your username/email will go here" | |
password = "and your password shall go here" | |
# opens up the browser window | |
self.driver = webdriver.Chrome() | |
driver = self.driver | |
# loads twitter login page for us | |
driver.get("https://twitter.com/login") | |
#sleeps for awhile to let page load | |
sleep(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment