Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk5 min

How to Use ScreenshotOne with Python to Capture Website Screenshots

A practical Python walkthrough for ScreenshotOne: install its SDK, save a PNG capture, choose page and wait settings, and troubleshoot common issues.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install ScreenshotOne’s Python SDK, create a client with your access and secret keys, configure a TakeOptions object, then call client.take(options) and save the returned image stream to a file. The example below captures a 1024 × 768 PNG; use HTTPS for API requests and keep credentials out of source control.

Capture a screenshot with ScreenshotOne’s Python SDK

1. Install the package

Install the SDK in your project environment:

pip install screenshotone

2. Add a working capture script

Replace the example URL with the page you want to capture. Supply your account’s access key and secret key through environment variables or your deployment’s secret manager rather than hard-coding them.

import os
import shutil
from screenshotone import Client, TakeOptions

client = Client(
    os.environ["SCREENSHOTONE_ACCESS_KEY"],
    os.environ["SCREENSHOTONE_SECRET_KEY"],
)

options = (
    TakeOptions.url("https://example.com")
    .format("png")
    .viewport_width(1024)
    .viewport_height(768)
)

image = client.take(options)
with open("screenshot.png", "wb") as output:
    shutil.copyfileobj(image, output)

Set the two environment variables before running the script. On success, it writes the image bytes to screenshot.png. The documented SDK pattern uses Client, TakeOptions.url(...), and client.take(options); the code is an adaptation of that pattern, not a claim of independent execution. See ScreenshotOne’s Python SDK documentation.

3. Generate a request URL when needed

If your integration needs a shareable or embeddable capture URL instead of downloading the image through the SDK, use client.generate_take_url(options). Treat generated URLs as sensitive if they contain access credentials or capture inputs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
  • Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
  • Built-In Mic: The built-in microphone lets others hear you clearly during video calls
  • Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works

Choose the capture settings

Input and output

The API accepts a website URL, HTML, or Markdown input; ScreenshotOne’s options documentation says one of those inputs is required. The Python example selects PNG, while the API reference lists JPG as the default image format. The documented formats include PNG, JPEG/JPG, WebP, GIF, JP2, TIFF, AVIF, HEIF, and PDF, as well as HTML and Markdown text responses. Confirm support for less common formats before depending on them. See the options reference.

Viewport, element, or full page

viewport_width and viewport_height set the browser’s visible area; the documented default width is 1280 pixels. Specify both values when you need repeatable output. These dimensions emulate a browser viewport, not a physical device.

Rank #2
Sale
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
  • The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
  • C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
  • The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.

For a focused capture, use a selector to target an element. ScreenshotOne’s selector guidance recommends selectors over exact clip coordinates when the page structure makes that practical, since selectors are generally more stable. For a full-page capture, account for pages that load content as the user scrolls: the full-page guide describes scrolling-based capture and notes that lazy-loaded content and other edge cases can require adjustments. Read the full-page capture guide.

Wait for the page to be ready

The wait_until option supports events including load, domcontentloaded, networkidle0, and networkidle2. Choose based on the page’s behavior. Network-idle waits can be a poor fit for pages that keep requests open; a load or DOM-content event, or a site-specific delay, may suit those pages better. No single wait condition is right for every site. The options reference also documents controls such as blocking cookie banners and chats; their effect depends on how the target site implements them.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Match localization to the website

Language, timezone, and IP region affect different signals. ScreenshotOne maps Accept-Language to language and locale, time_zone to browser timezone, and ip_country_code or a proxy to IP-based location. Browser geolocation can be supplied separately for sites that use the browser’s geolocation API. Set only the controls the target site relies on. See ScreenshotOne’s localization documentation.

Rank #3
Sale
NexiGo N60 1080P Webcam with Microphone, Software Control & Privacy Cover, USB HD Computer Web Camera, Plug and Play, for Zoom/Skype/Teams, Conferencing and Video Calling
  • 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
  • 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
  • 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.

Understand authentication and request options

The underlying /take API supports GET requests with options in the query string and POST requests with options in a JSON body. The access key can be supplied as a query parameter, in the POST body, or in the X-Access-Key header. ScreenshotOne cautions that HTTP does not encrypt credentials or other sensitive values in transit, so use HTTPS. For large HTML or Markdown inputs, prefer POST JSON rather than putting the content in a URL; the documented maximum request body is 100 MiB. See the Getting Started documentation.

Signed requests use a signature derived from request parameters and a signing key. The signature is not the secret key itself. If your account requires signing, follow the SDK or API signing mechanism and never put the raw secret key in the signature field. The options reference covers signing and request parameters.

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera
  • 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
  • Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
  • Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
  • Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
  • High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common capture problems

  • Authentication fails: check that the access and secret keys are the correct credentials for the account, that environment variables are present in the running process, and that any required request signature follows ScreenshotOne’s signing method. Do not substitute the secret key for a signature.
  • The image is incomplete or blank: verify the target URL and choose a wait condition suited to the page. A page that renders after client-side activity may need a different wait event or a delay; a page with persistent network activity may never reach a network-idle condition.
  • Content is missing in a full-page image: if the site lazy-loads content on scroll, tune the full-page behavior and waiting for that target rather than assuming one default capture will load every section.
  • The wrong language or regional content appears: determine whether the site selects content from the language header, timezone, IP address, or browser geolocation, then configure the corresponding setting. These controls are separate.
  • The request is too large: send large HTML or Markdown input in a JSON POST body instead of a GET URL, and stay within the documented 100 MiB maximum request body.
  • A less common output format is rejected: check the current format reference and try a documented common format such as PNG, JPG, or WebP if the target integration allows it.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. Its one-call GET endpoint returns a PNG, JPEG, WebP, or PDF, without requiring you to set up a browser in your Python project:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
import requests

r = requests.get(
    "https://api.screenshotneo.com/v1/shot",
    params={"access_key": "YOUR_API_KEY", "url": "https://example.com"},
    timeout=90,
)
open("shot.webp", "wb").write(r.content)

Use a valid ScreenshotNeo API key in place of YOUR_API_KEY. See the ScreenshotNeo API documentation for request options. Cookie banners, popups, and chat widgets are removed before capture; bot checks, blank pages, failed loads, and cache hits are not billed. An MCP server gives AI agents screenshot tools, and the free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Sign up for 1,000 free screenshots a month, with no card required.

Frequently Asked Questions

Can I save a ScreenshotOne capture as a PDF from Python?

Yes. The API options reference lists PDF as an output format; configure the output format in your capture options and consult the current SDK documentation for its supported option method.

Best Value
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
  • Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
  • Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
  • Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video

Does ScreenshotOne’s Python SDK require both account keys?

The documented Python client example initializes `Client` with an access key and a secret key.

Quick Recap

SaleBestseller No. 1
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Built-In Mic: The built-in microphone lets others hear you clearly during video calls
$35.80
SaleBestseller No. 2
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Compatible with Nintendo Switch 2’s new GameChat mode
$16.89
Bestseller No. 5
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Fully compatible with Windows 11
$69.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.