Socket
Book a DemoInstallSign in
Socket

lightshot-parser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightshot-parser

Parsing screenshots

1.0.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

lightshot-parser

You can use this script to parse screenshots from the site https://prnt.sc

Installation

npm i lightshot-parser

Using

const imgParser = require("lightshot-parser")
// this function has four arguments

// the first argument is how many screenshots need to be parsed

// the second argument is the path to save screensots

// the third argument is the delay (milliseconds) in sending the request (default - 1000ms)

// If the requests are too frequent, there is a chance of your IP being banned on the site prnt.sc 
// I recommend making a delay of a few seconds, the probability of your IP being banned will be lower

// (optional argument) the fourth argument is template, the link will start with these letters (default - null)

imgParser(15,"./img",2000,"aq1")

// after calling the function, screenshots will be uploaded to the directory

You can also install ligthsot-parser-cli for parsing from the terminal

Keywords

image-parser

FAQs

Package last updated on 12 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.