Some websites will have search forms for you to fill out if you want to get to your desired results.
In this tutorial, we'll show you how you can search for a keyword using a search box, so that you can scrape the results in another template.
For this tutorial we will use - http://www.amazon.com/ as an example. You can follow along using Amazon or you can apply the instructions to your own website and search form.
If you need to input multiple keywords into a single search box, follow the instructions in this tutorial.
Entering a single keyword
1. Click on the "Select page" command + button that is located on the right of the command.
2. From the tool box choose the "Select" tool.
3. Click on the search box on the page. Automatically the "input" command should appear for you together with a command that is selecting the search box.
4. Type in your text and watch it get typed into the website at the same time. Now, ParseHub will enter this text into the search box when it runs your project and scrapes the website.
5. Click on the "Select page" command + button that is located on the right of the command.
6. From the tool box choose the "Select" tool.
7. Click on the "Search" button. A selection command should appear for you automatically.
8. Click on the + button on the selection that you just made.
9. From the tool box choose the "Click" tool. The navigate command lets you go to another page or click through any link that opens a new page.
10. You also have to tell ParseHub which template to use on the new page with results opens up. In this case the page listing all of the results will look different than the homepage with the search box. You have to create a new template.
11. In the "template name" text box type in a name such as "results" and click "Create New Template". ParseHub will automatically open the new template and also navigate to the product details page behind the link.
12. On the new template you can go ahead and select and extract any of the results that you want to scrape.