js_snippet param, and it will be executed after the page load will finish.
To encode your JS snippet into the Base64 encoded string, you can use the following tools:
- Python: base64
- PHP: base64_encode
Those examples are only the most commonly used ones. To find out how to do it for your programming language, just Google
base64 encoding <your_programming_language>
The API request that scrapes
example.com and executes scrolling to the bottom of the page after the page load looks like the following:
Below you can find a helpful tool that makes Base64 encoding for you.
Please, enter your JS code you'd like to run after the page load:
The following result can be inserted in the API request as Base64 encoded JS snippet: