Package: screenshotscloud
ScreenshotsCloudPerfect Screenshots AnywhereGet high quality real browser screenshots in seconds using our reliable CDN backed API service.Get an API Key to start using this fast screenshot API service atScreenshotsCloud.RequirementsTested against Python 2.6+ and 3.2+InstallationInstall via pippipinstallscreenshotscloudOnce installed you can generate screenshot urls as follows:#!/usr/bin/pythonfromscreenshotscloudimportScreenshotsCloudscreenshotscloud=ScreenshotsCloud('SCREENSHOTSCLOUD_KEY','SCREENSHOTSCLOUD_SECRET')screenshotUrl=screenshotscloud.screenshotUrl({"url":"bbc.com/news","width":800})ParametersThese are the options you can use to customize your screenshot.ParameterDefaultDescriptionurlRequired.The website address that you want to take a screenshot of.width1920Width of the thumbnail. This option is only valid for png or jpg format options.viewport_width1920Width of the browser viewport this is the actual width of the page before we resize it for the thumbnail.viewport_height(1320)Height of the browser viewport, if you do not give this parameter we will calculate it for you based on viewport_width in 16:10 ratio.full_pagefalseCapture a full length screenshot of the requested page. If the format is pdf this option will always be true.formatpngOutput the screenshot as a PNG (png), JPEG (jpg) image or PDF (pdf).quality95 (if format=jpg)Set the jpeg quality of the screenshot if jpeg is set as the format.delay250Amount of time to wait in milliseconds before taking a screenshot of the page after it is fully loaded. Maximum 60000 (1 minute), minimum 100.cache_time2592000Amount of time in seconds to wait before taking a fresh screenshot for the same request. Maximum 2592000 (30 days), minimum 1.forcefalseForce a new screenshot to be taken with no cache.user_agentLatest Firefox User AgentSet the user agent this screenshot will identify as. Useful for identifying as a mobile or tablet browser or to identify as a specific browser if the website pretends it needs Internet Explorer.trimfalseTrim the excess space around the resulting screenshot using the most top left pixel color, useful for SVG's.transparentfalseRemove the background from the page, PNG format required.languageenAccept-Language header customization for websites that support it, set ja for Japanese, de for German etc.cookieSemi colon separated list of cookies e.g. fruit=apple; drink=teadisable_javascriptfalseDon't execute javascript on this page.disable_imagesfalseDon't download images on this page.timeout300000Amount of time in milliseconds to wait before taking screenshot anyway. Maximum 300000 (5 minutes).mobilefalseShortcut to set pixel_ratio, user_agent, viewport_width, viewport_height and width to that of the latest iPhone.pixel_ratio1Multiplier that sets the pixel density of the page relative to the resolution, useful for taking retina screenshots (2).click_selectorAccepts valid DOM selector (#wantedselector). Rendered screenshot will only display contents of DOM selector.wait_selectorAccepts valid DOM selector (.valid_selector > .another_class). We will not take the screenshot until .valid_selector appears on this screen and is not display:none; or timeout is reached.clip_selectorAccepts valid DOM selector (e.g. .valid_selector:not(div)). Rendered screenshot will only display contents of DOM selector. This option is only valid for png or jpg format options.More documentation about this package and other language implementations can be found athttps://screenshots.cloud/documentation.SupportContact us atsupport@brushd.comif you have any issues or questions about this package.Other implementationsNeed an implementation for another language?LanguageAddressC#https://github.com/ScreenshotsCloud/screenshotscloud-csJavahttps://github.com/ScreenshotsCloud/screenshotscloud-javaNode.jshttps://github.com/ScreenshotsCloud/screenshotscloud-nodePHPhttps://github.com/ScreenshotsCloud/screenshotscloud-phpPythonhttps://github.com/ScreenshotsCloud/screenshotscloud-pythonRubyhttps://github.com/ScreenshotsCloud/screenshotscloud-rubyColdFusionhttps://github.com/ScreenshotsCloud/screenshotscloud-coldfusionShell Scripthttps://github.com/ScreenshotsCloud/screenshotscloud-shScreenshotsCloud is made by Brushdhttps://brushd.com/