我的代码是:
driver.get("http://www.thegoodguys.com.au/buyonline/SearchDisplay?pageSize=16&beginIndex=0&searchSource=Q&sType=SimpleSearch&resultCatEntryType=2&showResultsPage=true&pageView=image&searchTerm=laptops")
link=();
linkPrice=();
price=();
productName=[];
Site='Harvey Norman'
link=driver.find_elements_by_class_name("photo")
linkPrice=driver.find_elements_by_class_name("product-title")
price=driver.find_elements_by_xpath("//div[@class='purchase']/span/span")
我不确定提供的xpath和class_name是否正确。可以验证一下,请让我知道如何找到它们
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句