Extracting data using the same xpath location
Hi,
I have problem on extracting data from different page.
The idea is to get the model of the phone in this websites, https://www.smartprix.com/mobiles/with-volte.
The x path i get in the first page:
/html/body/div[4]/div[1]/div[2]/div/div[4]/div[2]/ul/li[1]/div[3]/h2/a
The x path i get in the second page:
/html/body/div[4]/div[1]/div[2]/div/div[4]/div[1]/ul/li[1]/div[3]/h2/a
when i try to extract, it only extract what i have select at the first page, not at second page.
i hope someone can help me. thanks
-
Official comment
Hi farez37,
Thank you for reaching out.
Please try this XPath: //h2/a
Best regards,
Comment actions -
Thanks kara,
I already try that solution..in the loop, the list of the model come out but when the data extracted, it only takes the first one which is xiaomi redmi note 8 only. i already try few times by changing its xpath but none seems to work. can you help me tried to solve this problem.
Thank you
-
Hi farez37,
Thank you for your reply.
Could you please click here to submit a ticket with the task attached? So we can take a closer look and help you revise it.
Please follow the instructions in this tutorial to export the task: How to export a task?
Cheers,
Please sign in to leave a comment.
Comments
5 comments