Skip to main content
Wait before action
Updated over 7 months ago

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).

6622.gif

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.

23788.png

Tips:

  1. You can only check Wait until a designated element appears after checking the Wait before action.

  2. If you are not sure what's the XPath of the element, you can check What is XPath and how to use it in Octoparse. Or select an element from the web page and Octoparse will generate an XPath automatically.

bmnnk.gif
Did this answer your question?