This article explains the behavior difference between worker types, how to choose the right one for your project
Browser worker and code worker are two technical approaches for scraping, and you should choose between them based on your needs and technical challenges you’re facing with the website you’re scraping.
Choose the appropriate worker type based on the website’s technology and the navigation required to scrape your target data.Best practice: Start with the Code worker type and only switch if you can’t extract the data you need.When to use Browser worker:
You need to click elements to load additional data
You need to scroll to load more content
You need to capture network traffic from inside the browser (using tag_script or tag_response)
You need to type text to perform searches or trigger dynamic content”
Some functions in our library are only available when using Browser workers and will throw an error if you try to use them with Code workers.Below is a list of functions that can only be used with Browser workers: