A Python client for the HaveIBeenPwned REST API. https://haveibeenpwned.com/
pip install pypwned
- requests
- pyOpenSSL
- ndg-httpsclient
- pyasn1
import pypwned
print pypwned.getAllBreachesForAccount(email="foo@bar.com")
import pypwned
print pypwned.getAllBreachesForAccount(email="foo@bar.com",domain="adobe.com")
import pypwned
print pypwned.getAllBreaches()
import pypwned
print pypwned.getAllBreaches(domain="adobe.com")
Return the details of a single breach, by breach name.
import pypwned
print pypwned.getSingleBreachedSite(name="adobe")
Return the different types of data classes that are associated with a record in a breach. E.G, Email addresses and passwords
import pypwned
print pypwned.getAllDataClasses()
Return any pastes that contain the given email address
import pypwned
print pypwned.getAllPastesForAccount(account="foo@bar.com")