Skip to main content

Python wrapper for the Email Hunter API

Project description

# punter

[![status][1]][2]
[![version][3]][4]
[![license][5]][6]

A tiny python wrapper for the [Email Hunter API](https://emailhunter.co/api). Seriously. It's tiny.

## Usage

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

```python
>>> 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.

```python
>>> 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

```bash
$ 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.

[1]: https://img.shields.io/travis/jgoodlet/punter.svg
[2]: https://travis-ci.org/jgoodlet/punter.svg
[3]: https://img.shields.io/pypi/v/punter.svg
[4]: https://pypi.python.org/pypi/punter
[5]: https://img.shields.io/pypi/l/punter.svg
[6]: https://pypi.python.org/pypi/punter

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.0.4.tar.gz (5.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for punter-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9ebbe48299753f274ec69538315dcca2cb7774877e2c53967e64981bea16b167
MD5 5b0010c78de4fae0d0c2c343442d2bd2
BLAKE2b-256 abac75fbf78e788b8f80374c0cdf694f05ab5bde3c68910926e5c2dc826983f3

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