mercredi 14 mai 2014

extracting more information from webdriver


Vote count:

1




I have written a code to extract the mobile models from the following website


"http://ift.tt/1qCeTsd"



from selenium import webdriver
from selenium.webdriver.common.keys import Keys

driver = webdriver.Firefox()
driver.get("http://ift.tt/1qCeTsd")
elem=[]
elem=driver.find_elements_by_xpath('.//div[@class="pu-title fk-font-13"]')
for e in elem:
print e.text


Everything is working fine but the problem arises at the end of the page. It is showing the contents of the first page only.Please could you help me what can I do in order to get all the models.



asked 3 mins ago






Aucun commentaire:

Enregistrer un commentaire