Skip to content

photon

12,790 3 61 GPL-3.0
1.1.9 (21 Oct 2018) Aug 24 2018 1.4 thousand (month)

Photon is a Python library for web scraping. It is designed to be lightweight and fast, and can be used to extract data from websites and web pages. Photon can extract the following data while crawling:

  • URLs (in-scope & out-of-scope)
  • URLs with parameters (example.com/gallery.php?id=2)
  • Intel (emails, social media accounts, amazon buckets etc.)
  • Files (pdf, png, xml etc.)
  • Secret keys (auth/API keys & hashes)
  • JavaScript files & Endpoints present in them
  • Strings matching custom regex pattern
  • Subdomains & DNS related data

The extracted information is saved in an organized manner or can be exported as json.

Example Use


```python from photon import Photon

Create a new Photon instance

ph = Photon()

Extract data from a specific element of the website

url = "https://www.example.com" selector = "div.main" data = ph.get_data(url, selector)

Print the extracted data

print(data)

Extract data from multiple websites asynchronously

urls = ["https://www.example1.com", "https://www.example2.com"] data = ph.get_data_async(urls) ```

Alternatives / Similar


2,139 2025.4.15 (2025-04-15 04:02:28 ago) Dec 14 2008 compare
5,650 2.0.0 (2024-12-03 15:23:21 ago) Jul 17 2019 compare
61,075 2.14.2 (2026-03-12 14:47:43 ago) Jul 26 2019 compare
2,894 0.8.4.1 (2025-05-03 21:11:43 ago) Jun 30 2011 compare
crawl4ai new
63,373 0.8.6 (2026-03-24 15:07:50 ago) May 01 2024 compare
15,023 0.2.8 (2018-09-28 04:58:18 ago) Dec 28 2012 compare
scrapling new
34,629 0.4.3 (2026-03-30 03:51:19 ago) Aug 01 2024 compare
959 0.18.0 (2024-11-08 14:59:22 ago) Oct 27 2015 compare
3,668 0.12.0 (2026-02-14 21:00:12 ago) Oct 20 2013 compare
23,218 1.75.1 (2026-03-24 18:08:50 ago) Jan 15 2024 compare
3,089 1.6.0 (2025-07-22 06:00:53 ago) Sep 04 2013 compare
4,264 4.0.97 (2026-01-06 07:45:54 ago) Oct 01 2023 compare
248 1.34.0 (2024-11-27 14:57:34 ago) Feb 05 2023 compare
3,404 1.6.0 (2025-02-16 13:18:50 ago) Sep 30 2018 compare
7,132 1.1.14 (2022-07-17 17:20:09 ago) Jul 26 2019 compare
3,499 0.9.13 (2023-07-19 18:53:46 ago) Jul 04 2017 compare
1,744 0.8.5 (2022-09-06 08:54:56 ago) Oct 17 2018 compare
299 2.0.7 (2022-11-06 07:33:14 ago) Dec 11 2020 compare
425 0.1.3 (2023-08-01 20:28:33 ago) Feb 20 2022 compare
firecrawl new
- 0.0.0 (2025-03-15 00:00:00 ago) Apr 01 2024 compare

Other Languages

25,205 v2.2.0 (2025-03-27 10:47:28 ago) May 14 2018 compare
katana new
16,420 v1.5.0 (2026-03-10 14:52:47 ago) Nov 07 2022 compare
7,602 v1.4.0 (2026-03-03 03:58:32 ago) Feb 15 2020 compare
2,771 2026-04-01 (2026-04-01 13:51:12 ago) Jun 06 2019 compare
711 2026-03-21 (2026-03-21 09:11:03 ago) Feb 09 2017 compare
1,515 1.0.5 (2024-02-12 21:10:00 ago) Nov 22 2014 compare
crawlee new
22,648 3.16.0 (2026-04-01 15:40:03 ago) Apr 22 2022 compare
mechanize new
4,442 2.14.0 (2025-01-05 18:30:46 ago) Jul 25 2009 compare
2,054 (2021-05-19 15:14:49 ago) Nov 20 2016 compare
5,958 v2.0.0-alpha.6 (2026-04-01 17:34:26 ago) Sep 15 2020 compare
2,823 v1.3.0 (2024-03-01 03:34:34 ago) Apr 20 2016 compare
6,793 2.0.2 (2025-05-28 09:36:01 ago) Sep 10 2012 compare
3,064 v2.4.0 (2026-01-08 05:29:21 ago) Jul 17 2018 compare
goutte new
9,218 v4.0.3 (2023-04-01 09:05:33 ago) Dec 02 2012 compare
836 0.7.2 (2025-02-03 07:58:27 ago) Jul 25 2009 compare
kimurai new
1,098 2.2.0 (2026-01-27 17:36:19 ago) Aug 23 2018 compare
1,355 3.2.0 (2025-11-27 00:55:41 ago) Dec 27 2011 compare
1,454 v3.2.1 (2025-03-21 06:53:36 ago) Dec 27 2021 compare
165 2.3.0 (2021-03-18 00:10:00 ago) Dec 22 2019 compare
217 1.0.0-beta8.4 (2023-06-29 12:37:12 ago) Apr 18 2019 compare
583 3.0.0 (2024-04-09 15:34:59 ago) May 04 2020 compare
1,342 v0.7.6 (2025-12-04 15:08:06 ago) Mar 16 2013 compare
369 v3.5.6 (2026-01-05 11:13:18 ago) Apr 18 2022 compare
Was this page helpful?