pwnedapi is a python wrapper of the https://haveibeenpwned.com api
Installation via pip is not available now (coming soon)
-
Clone the project on your local computer.
-
Run the following command
$ python setup.py install
the methods of the HaveIBeenPwnedApi
returns exclusively classes.
from pwnedapi import HaveIBeenPwnedApi
api = HaveIBeenPwnedApi() # initiate the class
breaches = api.get_all_breaches() # get a list of all breaches
breaches_names = api.get_all_breaches_name() # get a list of all breaches name
breach_AshleyMadison = api.get_breach(name='AshleyMadison') # Get one specific
is_my_email_corrupted = api.check_email(email="obiwan@[email protected]") # check if your email is corrupted
Return the different types of data classes that are associated with a record in a breach email addresses, passwords,...
dataclasses = api.get_all_dataclasses()
Return pastes that contain the given email address
check_paste = api.check_paste(email="obiwan@[email protected]")