from the selenium import webdriver
The from the selenium. Webdriver. Support. The UI import WebDriverWait
The from the selenium. Webdriver. Support the import expected_conditions as EC
The from selenium.webdriver.com mon. By the import by
The from pyquery import pyquery as pq
The import time
If __name__=="__main__" :
Browser=webdriver. Chrome ()
Wait=WebDriverWait (browser, 5)
The get (" http://www.baidu.com ")
Kw=the find_element_by_id (" kw ")
Kw. Send_keys (" iphone6 ")
The button=the find_element_by_id (" su ")
Button. Click ()
Wait until (EC. Presence_of_element_located ((By CSS_SELECTOR, '# container # content_left)))
HTML=the page_source
Print (HTML)
The close ()
What in the HTML content is wrong, there is only one & lt; Meta> The contents of this label, there is no results, I don't know what's wrong
CodePudding user response:
By climbing the bai, camouflage a try,CodePudding user response:
Add a, the text tryCodePudding user response:
Solved? I climbed to the baidu page 2 content is wrong, don't know what page the contents of the climb is