import os
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.PhantomJS(
executable_path=r'E:\pachongProject\phantomjs-2.1.1-windows\phantomjs-2.1.1-windows\bin\phantomjs.exe')
fanyi_url = "http://fanyi.youdao.com/"
driver.get(url=fanyi_url)
time.sleep(1)
# print(driver.page_source)
while T