Skip to content

Instantly share code, notes, and snippets.

@mannynotfound
mannynotfound / deactivate_twitter.py
Created July 30, 2018 15:05
deactive a twitter account automatically
from selenium import webdriver
def deactive_twitter(username, password):
driver = webdriver.Chrome()
driver.implicitly_wait(30)
driver.get('https://twitter.com/login')
username_field = driver.find_element_by_class_name('js-username-field')
password_field = driver.find_element_by_class_name('js-password-field')