Skip to content

Actor which opens URL in headless browser and stores screenshot into Key-Value store

Notifications You must be signed in to change notification settings

rktst110/store-screenshot-url

 
 

Repository files navigation

Actor - Screenshot URL

Actor serving as an example of Input Schema. Takes URL of website and screenshot configuration parameters as input and outputs a screenshot of the website into Key-Value store.

INPUT

Input of this actor should be JSON containing filter specification. Allowed filters are:

Field Type Description Allowed values
url String Search term Any string value
waitUntil String When should the screenshot be taken One of:
"load"
"domcontentloaded"
"networkidle2"
"networkidle0"
delay Number Delay before the screenshot is taken after the waitUntil finishes Minimum: 0, Maximum: 3600000
viewportWidth Number How wide should the website and screenshot be Minimum: 100, Maximum: 3840
scrollToBottom Boolean Should the browser scroll to the bottom of the page before taking a screenshot true/false
delayAfterScrolling Number Specify the delay (in milliseconds) after scrolling to the bottom of the page before taking the screenshot. This option is only used if 'Wait for Network Idle After Scrolling' is not enabled. Minimum: 0, Maximum: 3600000
waitUntilNetworkIdleAfterScroll Boolean Choose whether to wait for the network to become idle after scrolling to the bottom of the page before taking a screenshot. If enabled, this option overrides the 'Delay After Scrolling' option. true/false
waitUntilNetworkIdleAfterScrollTimeout Number Specify the maximum wait time (in milliseconds) for the network to become idle after scrolling to the bottom of the page before taking the screenshot, this option is used to make sure handler doesn't get stuck for some pages. This option is only used if 'Wait for Network Idle After Scrolling' is enabled. Minimum: 1000, Maximum: 3600000

For more information about waitUntil parameter please take a look at documentation of Puppeteers page.goto function.

OUTPUT

Once the actor finishes, it will output a screenshot of the website into a file called OUTPUT stored in Key-Value store associated with the run.

About

Actor which opens URL in headless browser and stores screenshot into Key-Value store

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 94.4%
  • Dockerfile 5.6%