Why do we need to use "Wait before action"?
In some cases, the previous step may require some time to complete, such as Enter Text, or the current page requires a longer time to load. Wait before action would thus be needed or it may lead to some errors like missing data.
Wait before action can also be used to avoid being blocked by the website due to fast scraping. Slowing down the scraping would make the process more human-like.
How to set up "Wait before action"
Click on one action in the workflow. You can find the Wait before action in the Options of the settings at the bottom of the workflow.
Check Wait before action and select an appropriate wait time(3-5 seconds recommended).
If you want to wait for the page to load a specific element before scraping, Wait until a designated element appears will be very useful. You need to enter the XPath of the element, and Octoparse will wait until the element appears within the specified time frame before executing the next action.
Tips:
|