Skip to content

larogtek12/python-guerrillamail

 
 

Repository files navigation

Python Guerrillamail

Python Guerrillamail is a Python client API and command line interface for interacting with a Guerrillamail temporary email server.

Python Guerrilla Mail is free software, licensed under the GPLv3.

Usage (Python)

from guerrillamail import GuerrillaMailSession
session = GuerrillaMailSession()
print session.get_session_state()['email_address']
print session.get_email_list()[0].guid
print session.get_email(1).subject

Usage (CLI)

$ python guerrillamail.py setaddr john.doe
$ python guerrillamail.py info
Email: john.doe@guerrillamailblock.com
$ python guerrillamail.py list
(*) 48859781  09:25:01+00:00  admin@flirt.com
john3, View all singles who decided to contact you!

(*) 1         00:00:00+00:00  no-reply@guerrillamail.com
Welcome to Guerrilla Mail

Using Alternative Guerrillamail Server

By default, http://api.guerrillamail.com is used as the base URL for Guerrillamail API calls. This can be overridden by providing the base_url property when constructing a GuerrillaMailSession instance. When using the CLI the base_url property can be defined in the ~/.guerrillamail JSON config file, for example:

{
    "base_url": "https://api.guerrillamail.com"
}

About

Python client for Guerrilla Mail temporary email server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%