
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
An Email Hunter API client written in Python
Installation
------------
Requirements:
- Python 3 (because it's 2015)
To install:
::
pip install email-hunter-python
To update:
::
pip install --upgrade email-hunter-python
Usage
-----
email\_hunter\_python supports the three main methods of the `Email
Hunter <https://emailhunter.co/api/docs>`__ API: ``search``,
``generate``, and ``exist``. There are two ways to use
email\_hunter\_python:
- As a Python library
- As a command line (CLI) tool.
To use the email\_hunter\_python Python library:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Import the client and instantiate it:
.. code:: python
from email_hunter import EmailHunterClient
::
client = EmailHunterClient('my_api_key')
You can search:
.. code:: python
client.search('google.com')
A max of 100 results are returned, so use offset to paginate:
.. code:: python
client.search('google.com', offset=1)
You can also change type (personal or generic):
.. code:: python
client.search('google.com', type='personal')
You can generate:
.. code:: python
client.generate('google.com', 'Sergey', 'Brin')
And you can check if an email exists:
.. code:: python
client.exist('sergey@google.com')
To use email\_hunter\_python as a CLI tool:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
::
email_hunter [command name] [api_key] [other args]
The command name is ``search``, ``generate`` or ``exist``, the api\_key
is the API key associated with your Email Hunter account
The other arguments depend on the command you are using:
::
--domain Required for search and generate commands
--offset Optional, used with search command.
--type Optional, used with search command
--first_name Required for generate command
--last_name Required for generate command
--email Required for exist command
--file Path to a CSV to be used with the specified command.
CSV must have a column for each argument used.
The file argument is useful when you want to make several requests of
the same type. For example if you wanted to find the email addresses for
several people at an organization you would do the following:
::
email_hunter generate [api_key] --file people.csv > emails.csv
Where ``people.csv`` looks like:
::
domain,first_name,last_name
google.com,larry,page
google.com,sergey,brin
facebook.com,mark,zuckerberg
The output will also be in a CSV format.
License
-------
Copyright © 2015 Alan Vezina
Released under The MIT License (MIT), see the LICENSE file for details
FAQs
Client for Email Hunter REST API
We found that email_hunter_python demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.