Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/osctorand/lightshotscrape/llms.txt

Use this file to discover all available pages before exploring further.

Welcome to Lightshot Scrape

Lightshot Scrape is a tool that discovers random images from Lightshot (prnt.sc) by generating random URLs and extracting the hosted images. The project includes both a Python CLI version for automation and a Windows GUI wrapper for easy desktop use.

How it works

The tool generates random 12-character URLs in the format https://prnt.sc/[random], scrapes the page to find the image source, and saves it to your local system.
def ImageLinkGenerator():
    linkEnd = ''.join(random.choice(string.ascii_lowercase + string.ascii_uppercase + string.digits) for _ in range(12))
    link = "https://prnt.sc/" + linkEnd
    return link

Key features

Random discovery

Generates random Lightshot URLs to discover images uploaded by users worldwide

Cloudflare bypass

Uses cloudscraper to bypass Cloudflare protection on prnt.sc

Dual interface

Available as both a Python CLI tool and a Windows GUI application

Automated scraping

Supports both single-image mode and continuous loop mode

Get started

Installation

Install the Python CLI or Windows GUI version

Usage

Learn how to scrape images using the CLI or GUI
This tool is designed for educational purposes. Always respect copyright and privacy when using scraped content.

Architecture

The project consists of two main components:
  • Python CLI (lightshotscrape/) - Core scraping functionality with command-line interface
  • Windows GUI (lightshotscrape-gui/) - C# WinForms wrapper that executes the Python scripts
The GUI application launches the Python scripts in a subprocess and displays the results in a Windows desktop interface.

Build docs developers (and LLMs) love