progragle

progragle / scraglewebshot / 0.1.0

scraglewebshot - Capture screenshot of web page

Royalty Free
scraglewebshot captures screenshot of specified web page.
Language
Java
Metrics
API Calls - 2,106 Avg call duration - 10.24sec
Permissions
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. Learn More
This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.
This allows an algorithm to compose sophisticated functionality using other algorithms as building blocks, however it also carries the potential of incurring additional royalty and usage costs from any algorithm that it calls.

Run an Example

Input
Output
"{\"isError\":false,\"errorMessage\":\"Capturing screenshot is completed successfully!\",\"errorCode\":\"Success\",\"results\":{\"outputFile\":\"data://.algo/progragle/scraglewebshot/temp/b980953f1c824b6ca6a2ee4af41a8307.png\",\"errorStream\":\"\",\"outputFileUrl\":\"https://algorithmia.com/v1/data/.algo%2Fprogragle%2Fscraglewebshot%2Ftemp%2Fb980953f1c824b6ca6a2ee4af41a8307.png\",\"outputStream\":\"ReferenceError: Can\\u0027t find variable: Set\\n\\n  https://static.reuters.com/resources_v2/react/release/fast_track-2b1cbaa7/common.bundle.js:31 in ./node_modules/react-dom/cjs/react-dom.production.min.js\\n  https://static.reuters.com/resources_v2/react/release/fast_track-2b1cbaa7/common.bundle.js:1 in t\\n  https://static.reuters.com/resources_v2/react/release/fast_track-2b1cbaa7/common.bundle.js:31 in ./node_modules/react-dom/index.js\\n  https://static.reuters.com/resources_v2/react/release/fast_track-2b1cbaa7/common.bundle.js:1 in t\\n  https://static.reuters.com/resources_v2/react/release/fast_track-2b1cbaa7/common.bundle.js:1 in ./js/lib/helpers/ReactRenderClient.js\\n  https://static.reuters.com/resources_v2/react/release/fast_track-2b1cbaa7/common.bundle.js:1 in t\\n  https://static.reuters.com/resources_v2/react/release/fast_track-2b1cbaa7/article.bundle.js:1 in ./js/article_index.js\\n  https://static.reuters.com/resources_v2/react/release/fast_track-2b1cbaa7/common.bundle.js:1 in t\\n  https://static.reuters.com/resources_v2/react/release/fast_track-2b1cbaa7/article.bundle.js:1\\n  https://static.reuters.com/resources_v2/react/release/fast_track-2b1cbaa7/common.bundle.js:1 in t\\n  https://static.reuters.com/resources_v2/react/release/fast_track-2b1cbaa7/common.bundle.js:1 in webpackJsonp\\nReferenceError: Can\\u0027t find variable: abp\\n\\n  https://www.reuters.com/article/us-usa-art-nazi/new-york-judge-awards-nazi-looted-artworks-to-holocaust-victims-heirs-in-key-test-case-idUSKCN1HD0AV:86 in global code\\n  :0 in insertBefore\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:44\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:47 in c\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:74 in Uf\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:163\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:157 in xl\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:165 in Kg\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:107 in Xg\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:108 in push\\n  https://www.google-analytics.com/gtm/js?id\\u003dGTM-TBBXQQ\\u0026t\\u003dgtm1\\u0026cid\\u003d815217828.1523090277:58 in push\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:108\\n[object Object]\\n\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:93 in error\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:101 in onerror\\n  :0 in insertBefore\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:44\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:47 in c\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:74 in Uf\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:163\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:157 in xl\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:165 in Kg\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:107 in Xg\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:108 in push\\n  https://www.google-analytics.com/gtm/js?id\\u003dGTM-TBBXQQ\\u0026t\\u003dgtm1\\u0026cid\\u003d815217828.1523090277:58 in push\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:108\\nReferenceError: Can\\u0027t find variable: TR3\\n\\n  https://www.reuters.com/article/us-usa-art-nazi/new-york-judge-awards-nazi-looted-artworks-to-holocaust-victims-heirs-in-key-test-case-idUSKCN1HD0AV:1 in global code\\n  :0 in replaceChild\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:100 in $c\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:99 in xd\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:97 in Uc\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:95 in Hb\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:94 in write\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:101 in c\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:101 in b\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:102\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:94 in Jc\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:94 in write\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:98 in $b\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:97\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:99 in xd\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:97 in Uc\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:95 in Hb\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:94 in write\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:98 in $b\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:97\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:99\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:100 in onload\\n[object Object]\\n\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:93 in error\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:101 in onerror\\n  :0 in replaceChild\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:100 in $c\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:99 in xd\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:97 in Uc\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:95 in Hb\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:94 in write\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:101 in c\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:101 in b\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:102\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:94 in Jc\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:94 in write\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:98 in $b\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:97\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:99 in xd\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:97 in Uc\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:95 in Hb\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:94 in write\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:98 in $b\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:97\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:99\\n  https://www.googletagmanager.com/gtm.js?id\\u003dGTM-W9SLGS:100 in onload\\nTypeError: null is not an object (evaluating \\u0027document.getElementById(\\u0027replay-video\\u0027)\\u0027)\\n\\n  https://www.reuters.com/article/us-usa-art-nazi/new-york-judge-awards-nazi-looted-artworks-to-holocaust-victims-heirs-in-key-test-case-idUSKCN1HD0AV:439\\nTypeError: null is not an object (evaluating \\u0027document.getElementById(\\u0027replay-video2\\u0027)\\u0027)\\n\\n  https://www.reuters.com/article/us-usa-art-nazi/new-york-judge-awards-nazi-looted-artworks-to-holocaust-victims-heirs-in-key-test-case-idUSKCN1HD0AV:446\\n\"}}"

Install and Use

Install

Install the Algorithmia CLI client by running:

curl -sSLf https://algorithmia.com/install.sh | sh

Then authenticate by running:

$ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
CLI Install Docs

Use



    algo run progragle/scraglewebshot/0.1.0 -d '{
  "url": "https://www.reuters.com/article/us-usa-art-nazi/new-york-judge-awards-nazi-looted-artworks-to-holocaust-victims-heirs-in-key-test-case-idUSKCN1HD0AV"
}' --timeout 300
  
CLI Docs