to scrape the categories' name, we can add an extract data button here and make sure to select "Select items in loop item":
And we can just use the same XPath of the Loop Item for this data field, don't forget to tick "Relative XPath":
The other steps are to add the pagination loop and the loop item to click into those two categories to scrape, to learn how, please check:
Lesson 6: Pagination - Capture data from multiple pages
Lesson 5: Getting data - Click through links in a list and capture data from each item page
To learn more about XPath, please check out the newly updated tutorial: What is XPath and how to use it in Octoparse
Please sign in to leave a comment.