# Photon

> Fast Python web crawler for OSINT that extracts URLs, emails, files, and more

- Category: Data & Labeling / Web Scraping & Crawling
- Language: Python
- Licence: GPL-3.0
- Repository: https://github.com/s0md3v/Photon
- Canonical page: https://ai-tldr.dev/tools/photon/

## In short

Photon is a Python web crawler built for OSINT (open-source intelligence) work. It sits in the Web Scraping & Crawling category of the Data & Labeling tools and is open-source, written in Python and licensed GPL-3.0. To get started: clone the repository.

## Overview

Photon is a Python web crawler built for OSINT (open-source intelligence) work. As it walks a website, it collects useful data such as in-scope and out-of-scope URLs, URLs with parameters, emails and social media accounts, files like PDFs and images, exposed API keys and hashes, JavaScript files and their endpoints, and subdomain/DNS information. The results are saved in an organized folder and can also be exported as JSON.

It is aimed at security researchers, bug bounty hunters, and anyone who needs to map a site and pull structured data out of it. You run it from the command line against a target URL, and it does the crawling and extraction for you.

Within the web scraping and crawling category, Photon focuses on reconnaissance rather than general-purpose page scraping. It uses threaded crawling for speed and offers options to control timeout, delay, seeds, and URL exclusion, plus plugins for archive.org seeds and DNS dumping.

## What it does

- Extracts URLs (in-scope and out-of-scope), including URLs with query parameters
- Finds intel such as emails, social media accounts, and storage buckets while crawling
- Collects files (pdf, png, xml, etc.), secret/API keys, hashes, and JavaScript endpoints
- Discovers subdomains and DNS-related data
- Threaded crawling with options for timeout, delay, seeds, and regex-based URL exclusion
- Plugins for wayback (archive.org seeds) and dnsdumpster, plus JSON export and Docker support

## Getting started

Photon runs as a Python script you clone from GitHub, then point at a target URL from the command line.

1. Clone the repository

   Download Photon from GitHub and enter the project directory.

```bash
git clone https://github.com/s0md3v/Photon.git
cd Photon
```

2. Crawl a target URL

   Run the script with -u and the site you want to crawl. Extracted data is saved in an organized folder named after the target.

```bash
python photon.py -u google.com
```

3. Run with Docker (optional)

   Build the lightweight Python-Alpine image and run a crawl in a container. Mount a folder to view the results locally.

```bash
docker build -t photon .
docker run -it --name photon -v "$PWD:/Photon/google.com" photon:latest -u google.com
```

## When to use it

- Reconnaissance during a bug bounty or penetration test to map a target site's URLs and endpoints
- Finding exposed emails, API keys, or sensitive files left in a site's pages and scripts
- Discovering subdomains and DNS data as part of an OSINT investigation
- Seeding a crawl from archive.org to find historical URLs that are no longer linked
