Hunter.io v2 api implementation
Project description
Forager service
A python wrapper for the Hunter.io v2 api with additinal crud service.
Installation
Requirements
- Python 3.10
- httpx
To install
pip install forager_service
Usage
Service supports next method from Hunter.io v2 api
- domain_search (with async adomain_search)
- email_finder (with async aemail_finder)
- verify_email (with async averify_email)
- email_count (with async aemail_count)
Additionally, service supports crud methods for locally storing data
How to use service
Import service and instantiate it once
from config import HunterService
initializer = HunterService()
initializer.initialize_service("api_key_got_from_hunter")
initializer.initialize_async_service("api_key_got_from_hunter")
hunter = initializer.service
async_hunter = initializer.async_service
crud_service = initializer.crud_service
Once initialized somewhere in the code you can get instances in different places without additional initialization
hunter = HunterService().service
crud_service = HunterService().crud_service
All data stores in crud_service internal storage.
Search addresses for a given domain
hunter.domain_search("www.brillion.com.ua")
Or pass company name
hunter.domain_search(company="Brillion", limit=20, seniority="junior")
Find email address
hunter.email_finder("pmr", full_name="Sergiy Petrov", raw=True)
Check email deliverabelity
hunter.email_verifier("a@a.com")
CRUD operations can be performed to manipulate received data
crud_service = HunterService().crud_service
crud_service.create("company_email", hunter.domain_search("company.com.ua"))
Tests
To run test firstly you need to install test dependency, then run
pytest -cov
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
forager_service-0.1.1.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for forager_service-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 113bdbfd3916b4d4cf384db92243d4f6d41cec39582a99b92a86f753dcd198f0 |
|
MD5 | f81936a161f55e931ac24c24d0977d59 |
|
BLAKE2b-256 | f3ee6f64ad55ad35610393bca5fd37356c0c0e9e9c4b68694de11950dd9bac67 |