Skip to content

A simple Ruby script to get a screenshot of a live webpage using the free urlscan.io API ,also saves the whole result json for inspection

License

Notifications You must be signed in to change notification settings

sra0ne/urlscan-screenshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

URLScan.io Screenshot and Result Retrieval

This Ruby script interacts with the urlscan.io API to scan a provided URL, retrieve a screenshot, and save the scan result in JSON format.

Prerequisites

  • Ruby installed on your system
  • Free API key from urlscan.io (Set as an environment variable: urlsckey)

Usage

  1. Run the script:

     ruby urlscr.rb

2.Enter the URL when prompted.

3.Wait for the scan to complete.

4.The script will save the screenshot as uuid.png and the scan result as uuid-result.json in the current directory.

Configuration

Set the urlscan.io API key as an environment variable:

export urlsckey="your_api_key"

This script has no dependencies and only uses the Ruby standard library

Contributing

Feel free to contribute or expand by opening issues or submitting pull requests.

License

This project is licensed under the MIT License.

About

A simple Ruby script to get a screenshot of a live webpage using the free urlscan.io API ,also saves the whole result json for inspection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages