- Print
- DarkLight
- PDF
What should I know about site navigation?
dexi.io robots can navigate a Web site in virtually any way a human can. This document discusses a number of Web site navigation elements you may encounter on your travels throughout the Internet and how to address them in our scraper editor.
Links and buttons
To instruct the scraper to follow a link:
- Select the link or button element to select it.
- In the Element Panel, select Click Element.
Navigation menus
To instruct the scraper to follow a single navigation menu item, follow the directions found above, under Links and buttons.
To instruct the scraper to iterate through all menu items:
- Select menu items.
- In the Element Panel, select Loop Through Elements.
- Select the Step Forward button twice to adjust the timeline position to just after the Loop Through Elements step.
- Select the first menu item to select it.
- In the Element Panel, select Click Element.
- Follow this step with any further navigation or extraction steps to be performed after clicking each menu item.
The robot will perform all configured steps for each menu item before continuing with steps following the Loop Through Elements loop.
Authenticating with username and password
Make sure you have input fields and testing values configured for the username and password under the editor's Inputs tab. See Input and output
To sign in to a site protected by a username/password security model:
- Select the username field to select it.
- In the Element Panel, select Input.
- In the Step Panel, choose the input field from which to retrieve the username.
- Make any other required configuration changes.
- Select the password field to select it.
- In the Element Panel, select Input.
- In the Step Panel, choose the input field from which to retrieve the password.
- Make any other configuration changes as needed.
- Select the submit credentials button to select it.
- In the Element Panel, select Click Element.
Captcha
To address a Captcha or similar anti-robot feature:
- Select the Captcha image element to select it.
- In the Element Panel, select Resolve Captcha. If selecting a Captcha element doesn't reveal the Resolve Captcha option, temporarily choose another option, such as an Extract option. You can then edit the step to select Resolve Captcha from the Step Type menu and enter the required configuration settings.
- Select the response input field to select it.
- In the Element Panel, select Input and complete the configuration.
- Select the submit response button to select it.
- In the Element Panel, select Click Element.
How the extractor navigates
Whenever extractor robots navigate to a new URL they do so by opening up a "tab" - once the iteration for a given page is done it automatically jumps back - closing down the newly opened tabs and shifting back to the existing tab.
Often this will be a loop through a list of links - where each click on the links will open a new tab and perform the actions you've described - and once it iterates to the next link in the list it simply closes the new tabs and shifts back to the existing tab containing the list - causing no additional loading or waiting time.
This is also called page state. Read more about it in The extractor editor