Skip to main content

Python wrapper for the Email Hunter API

Project description

status version license

A tiny python wrapper for the Email Hunter API. Seriously. It’s tiny.

Usage

In most cases the primary usage will be executing searches on a domain.

>>> import punter
>>> s = punter.search('d08d2ba22218d1b59df239d03fc5e66adfaec2b2', 'stripe.com')
>>> s['status']
u'success'
>>> s['results']
164
>>> s['emails']
[{
    "status": "success",
    "results": 164,
    "webmail": false,
    "pattern": "{first}"
    "offset": 0,
    "emails": [
        {
          "value": "hoon@stripe.com",
          "type": "personal",
          "sources": [
            {
              "domain": "stripe.com",
              "uri": "https://stripe.com/blog/weekly-and-monthly-transfers",
              "extracted_on": "2015-03-05"
            }
          ]
        },
    ...
    ]
}]

Want to do an email search? Essentially the same deal.

>>> import punter
>>> s = punter.search('d08d2ba22218d1b59df239d03fc5e66adfaec2b2', 'apple-pay@stripe.com')
>>> s['status']
u'success'
>>> s['exist']
True
>>> s['email']
u'apple-pay@stripe.com'
>>> s['emails']
[{
    u'domain': u'mpora.com',
    u'extracted_on': u'2015-04-27',
    u'uri': u'http://mpora.com/tags/wolfgang-wildner'
}]

Install

$ pip install punter

Todo

There’s always room for improvement.

  • More Pythonic!

  • Tighten up the exception handling

  • Tox configuration

  • Perhaps make a cli (new project?)

License

The MIT License (MIT)

Copyright (c) 2015 Joshua Goodlett

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

punter-0.1.2.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file punter-0.1.2.tar.gz.

File metadata

  • Download URL: punter-0.1.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for punter-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e5a040831726d6824420cf462253c89a9697746ebf1e4ae99be79a752986deba
MD5 ae5865b1c0fe45284ac148b2e2697f75
BLAKE2b-256 88fb38125a97db62b671264f700ba6758f6444aaa18f7913597a1b85a36d049f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page