Skip to content

ericfourrier/pwnedapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pwnedapi

Travis-CI Build Status Python 2.7 Python 3.5 License

Introduction

pwnedapi is a python wrapper of the https://haveibeenpwned.com api

Installation

Installation via pip is not available now (coming soon)

  1. Clone the project on your local computer.

  2. Run the following command

    • $ python setup.py install

Usage

the methods of the HaveIBeenPwnedApi returns exclusively classes.

Initialisation

from pwnedapi import HaveIBeenPwnedApi
api = HaveIBeenPwnedApi() # initiate the class

Breaches

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

Dataclasses

Return the different types of data classes that are associated with a record in a breach email addresses, passwords,...

dataclasses = api.get_all_dataclasses()

Pastes

Return pastes that contain the given email address

check_paste = api.check_paste(email="obiwan@[email protected]")

About

pwnedapi is a python wrapper of the https://haveibeenpwned.com api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages