Skip to content


MIT 52 3 10,458
305 (month) Aug 24 2018 1.1.9(5 years ago)
2,463 4 39 Apache License 2.0
0.8.1(3 years ago) Jun 30 2011 472.3 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 (
  • 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.

python-readability is a python package that allows developers to extract the main content of a web page, removing any unnecessary or unwanted elements, such as ads, navigation, and sidebars.

It is based on the algorithm used by the popular web-based service, Readability, and it uses the beautifulsoup4 package to parse the HTML and extract the main content.

Readability is similar to Newspaper in terms that it's extracting HTML data

Example Use

from photon import Photon

#Create a new Photon instance
ph = Photon()

#Extract data from a specific element of the website
url = ""
selector = "div.main"
data = ph.get_data(url, selector)

#Print the extracted data

#Extract data from multiple websites asynchronously
urls = ["", ""]
data = ph.get_data_async(urls)
import requests
from readability import document

response = requests.get('')
doc = document(response.content)
'example domain'

"""<html><body><div><body id="readabilitybody">\n<div>\n    <h1>example domain</h1>\n
<p>this domain is established to be used for illustrative examples in documents. you may
use this\n    domain in examples without prior coordination or asking for permission.</p>
\n    <p><a href="">more information...</a></p>\n</div>

Alternatives / Similar