What is Open in a new tab and what is its benefit?
In the majority of extraction scenarios, data are not only retrieved from the main webpage but also within the subpages upon clicking. This is where the Open in a new tab feature can be very useful.
One of the key benefits of using this feature is its ability to speed up the extraction process, as the task can simply click on the new tab to perform the extraction, rather than having to open a subpage and then return to the main page for each extraction.
How to switch on/off this feature?
💡 Typically, Octoparse will automatically enable this feature for the Click Item.
The option can be found in the settings for the Click Item (or Click URLs in the list) command. Simply select the Click Item command and you will find it under Options. Check the box to enable it or vice versa. Don't forget to click Apply to save your changes.
How can I determine if the target website is compatible with this feature?
Tip 1.
The Open in a new tab feature in Octoparse works the same as the Open link in new tab function in a browser. If you see this option when you right-click on a sub-page link on the main page, you can use the Open in a new tab feature when setting up a task.
Tip 2.
When you access the sub-page using a regular browser, a unique URL is generated for the sub-page, you can use the Open in a new tab feature when setting up a task.
When should this feature not be applied?
When the page employs AJAX.
This is because pages utilizing AJAX are unable to open a new tab, but instead directly update the data on the current page. If data extraction is being performed, utilizing the Open in a new tab feature may result in a blank page (about:blank).
FAQ
Q1: What steps should I take if my target website does not allow subpages to be opened in a new tab?
A1: If your target website does not allow subpages to be opened in a new tab, you can consider using the Back to the previous page command after extracting information from the subpages. Alternatively, you can find some other approaches in this tutorial.