from selenium import webdriver import time from bs4 import BeautifulSoup url = "http://www.hsbkos.com/" soup = BeautifulSoup() soup.findAll(‘div‘,{‘class‘:‘objbox‘}) driver = webdriver.Chrome() time.sleep(1) driver.get(url) time.sleep(1) driver.maximize_window() loginButton = driver.find_element_by_id(‘loginin‘).click() memberUsername = driver.find_element_by_name(‘memberUsername‘) userPwd = driver.find_element_by_name(‘userPwd‘) submitButton = driver.find_element_by_tag_name("strong") memberUsername.send_keys(‘17364550000‘) userPwd.send_keys(‘******‘) time.sleep(1) submitButton.click() time.sleep(1)