Blocking Resource Loading

Why process data you won’t use?

Blocking resources means preventing your browser from downloading specific types of content that are not needed for the scraping task. This may include images, style sheets, fonts, and other elements that may not be necessary for data extraction.

To improve crawling efficiency, reduce loading time, optimize performance, and reduce bandwidth usage, you can block specific types of resources from loading using the block_resources parameter. When you choose the rendering type of HTML, blocking resource loading may be a good choice.

We currently support the following resource blocking:

Resource Type
Description 
Impact

Image

Images and icons

Visual content

Script

JavaScript files

Page functionality

Usage Examples

{
    "actor": "unlocker.webunlocker",
    "input": {
        "url":"https://www.google.com/",
        "type":"html",
        "allow_redirects":"False",
        "block_resources":"image,script"
    }
};

Last updated

Was this helpful?