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 budget, and based on technical challenges you’re facing with the website you’re scraping.
You should choose the right worker type based on the technology used by the website you want to scrape, and the navigation needed for scraping the data you need.It’s good to start with the cheaper code workers and only change if you find that you cant’ get the data you want.For example:
If you need to click on element to load some more data
If you need to use scroll for load more elements
If you need to use tag_script, tag_response (capture network traffic from inside the browser)
if you need to type some text to get data on the website to do a search
Some functions in our library are only available when using browsers and will throw an error if you try to use them from code workers.Below is a list of function that you can only use from browser workers: