Navigate Through Categories
Learn to navigate across category pages on our target "Books to Scrape" website.
We'll cover the following...
Now, let’s implement the navigation among the category pages. This is useful because we need to capture all the books under respective categories.
Approach
The first thing we need to figure out is how to automate this with Puppeteer. To answer that, we need to think through how we usually navigate among the categories on the webpage as users. We can see two approaches to this.
On the web page, clicking on a category brings us to the respective category page. If we can simulate that clicking behavior with ...