Skip to content

Capture screenshots of web pages from specified URL using Rust. Customize viewport dimensions and save the resulting image in PNG format. You can customize the viewport dimensions.

License

Notifications You must be signed in to change notification settings

Kremilly/PageShot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PageShot

Capture screenshots of web pages from specified URL using Rust. Customize viewport dimensions and save the resulting image in PNG format. You can customize the viewport dimensions and save the resulting image in PNG format.

Features

  • Capture screenshots from any URL.
  • Customize viewport width and height.
  • Save screenshots in PNG format.
  • Simple command-line interface.

Installation

To build and run PageShot, make sure you have Rust and Cargo installed. Clone this repository and use Cargo to build the project:

cargo install pageshot

Usage

Run the compiled binary with the desired URL, viewport dimensions, and output file name:

pageshot -u https://example.com --width 1920 --height 1080 -o example.png

Arguments

  • -u, --url <URL>: The URL of the web page to capture.
  • --width <WIDTH>: The width of the viewport (default: 1920).
  • --height <HEIGHT>: The height of the viewport (default: 1080).
  • -o, --output <FILE>: The name of the output file (default: screenshot.png).

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Capture screenshots of web pages from specified URL using Rust. Customize viewport dimensions and save the resulting image in PNG format. You can customize the viewport dimensions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages