Git Product home page Git Product logo

site-scan's Introduction

site-scan

site-scan easily takes screenshots of websites

CLI for capturing website screenshots, powered by puppeteer.

Installation

To install globally:

$ npm install site-scan -g

Usage

You can use sitescan or just ss:

$ sitescan [options] [url(s)]
$ ss [options] [url(s)]

Options

-h or --help Display help

-p or --path Path to save screenshots to (Defaults to CWD)

-x or --width Custom viewport width (Default: 1920)

-y or --height Custom viewport height (Default 1080)

-f or --full Capture full page screenshot (Default: false)

-t or --transparent Hides default background to allow transparency (Default: false)

-j or --jpeg Capture JPEG screenshot (Default: PNG)

-q or --quality Quality of JPEG screenshot (0-100, Default: 100)

-s or --sleep Time (ms) to wait after load before screenshot (Default: 0)

-n or --name Custom file name. Multiple screenshots will append a number to this name. (Default: website hostname)

-r or --scale Custom browser scaling to use (Default: 1)

-l or --list Loads url(s) from a local file instead of the CLI (must be separated by a space character) (Default: undefined)

Examples

Take a full page screenshot of a website

$ ss youtube.com --full

Take a screenshot of multiple websites as JPEGs

$ ss youtube.com google.com -j

Use a custom resolution

$ ss github.com -x 640 -y 480

Use a text file of space-separated URLs to load from

$ ss -l ./path/to/websites_list.txt

Development

$ git clone https://github.com/christopherwk210/site-scan
$ cd site-scan
$ npm i
$ node ./lib/site-scan.js

site-scan's People

Contributors

christopherwk210 avatar piperchester avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.