Home > other >  Python crawl data for help
Python crawl data for help

Time:10-22

http://www.fangdi.com.cn/trade/mouth_sale.html
Real estate web crawl clinch a deal the data in a month can't positioning error, an error code is the two words:
Xpath='/HTML/body/div [3]/div/div [4]/div/ul [2]/li [2]/span [1]/I'
Element21=driver. Find_element_by_xpath (xpath). The text
The result error is:
Selenium.com mon. Exceptions. NoSuchElementException: Message: Unable to locate the element:/HTML/body/div [3]/div/div [4]/div/ul [2]/li [2]/span [1]/I
Because the cause of the error analysis has three tables on the web, so can't locate, but look at the web page source code found three table name attribute as the same? Don't know what to do, ask for help

CodePudding user response:

CodePudding user response:

Thank you, may be not clear, I am using selenium to crawl the data, you mentioned that use is the method of the request headers like it?
  • Related