{"id":20706801,"url":"https://github.com/VonStruddle/PyHunter","last_synced_at":"2025-05-10T20:30:58.772Z","repository":{"id":52174173,"uuid":"92219007","full_name":"VonStruddle/PyHunter","owner":"VonStruddle","description":"A Python wrapper for the Hunter.io v2 API","archived":false,"fork":false,"pushed_at":"2022-11-21T10:01:02.000Z","size":89,"stargazers_count":126,"open_issues_count":0,"forks_count":24,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-04T09:37:50.085Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://vonstruddle.github.io/PyHunter/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VonStruddle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-23T20:49:25.000Z","updated_at":"2025-04-04T05:51:33.000Z","dependencies_parsed_at":"2023-01-21T23:49:25.974Z","dependency_job_id":null,"html_url":"https://github.com/VonStruddle/PyHunter","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VonStruddle%2FPyHunter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VonStruddle%2FPyHunter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VonStruddle%2FPyHunter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VonStruddle%2FPyHunter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VonStruddle","download_url":"https://codeload.github.com/VonStruddle/PyHunter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253480312,"owners_count":21915245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T01:23:55.254Z","updated_at":"2025-05-10T20:30:58.438Z","avatar_url":"https://github.com/VonStruddle.png","language":"Python","readme":"[![PyPI version](https://badge.fury.io/py/pyhunter.svg)](https://badge.fury.io/py/pyhunter)\n\n# PyHunter\n\n## A Python wrapper for the Hunter.io v2 API\n\n### Installation\n\nRequirements:\n\n* Python 3 (no Python 2 version)\n\n\nTo install:\n\n```bash\npip install pyhunter\n```\n\n### Usage\n\nPyHunter supports all the methods from the [Hunter.io](https://hunter.io/api/v2/docs) v2 API:\n\n* `domain_search`\n* `email_finder`\n* `email_verifier`\n* `email_count`\n* `account_information`\n\nPyHunter also supports new methods from the `Leads` and `Leads Lists` APIs.\n\n### How to use PyHunter\n\nImport the PyHunter and instantiate it:\n\n```python\nfrom pyhunter import PyHunter\n```\n\n```python\nhunter = PyHunter('my_hunter_api_key')\n```\n\nYou can search all the email addresses for a given domain:\n\n```python\nhunter.domain_search('instagram.com')\n```\n\nYou can also pass the company name, along with optional parameters:\n\n```python\nhunter.domain_search(company='Instagram', limit=5, offset=2, emails_type='personal')\n```\n\nYou can find a specific email address:\n\n```python\nemail, confidence_score = hunter.email_finder('instagram.com', first_name='Kevin', last_name='Systrom')\n```\n\nYou can also use the company name and the full name instead, along with raw to get the full response:\n\n```python\nhunter.email_finder(company='Instagram', full_name='Kevin Systrom', raw=True)\n```\n\nYou can check the deliverability of a given email address:\n\n```python\nhunter.email_verifier('kevin@instagram.com')\n```\n\nYou can check how many email addresses Hunter has for a given domain:\n\n```python\nhunter.email_count('instagram.com')\n```\n\nYou can also use a company name if the domain is unknown::\n```python\nhunter.email_count(company='Instagram')\n```\n\nWhen both domain and company are passed, the domain will be used:\n```python\nhunter.email_count(domain='instagram.com', company='Instagram')\n```\n\nAnd you can finally check your account information (PyHunter adds the number of calls still available in the payload):\n\n```python\nhunter.account_information()\n```\n\n\n**NOTE:** By default, all of the calls (except `email_verifier()`) return the 'data' element\nof the JSON response. You can get the \"raw\" response by passing `raw=True` to those calls.\nThis gives access to the response headers, e.g. `X-RateLimit-Remaining` returned for the\n`domain_search()` call, and also the complete response body, including `meta`.\n\n\n### But that's not all folks! As the v2 API added Leads and Leads Lists, these methods are also available on PyHunter\n\n#### Leads methods\n\nYou can get all your leads:\n\n```python\nhunter.get_leads()\n```\n\nOr filter the leads you want using these arguments:\n\n```python\nhunter.get_leads(offset=2, limit=10, lead_list_id=1, first_name='Kevin', last_name='Systrom', email='kevin@instragram.com', company='Instagram', phone_number='0102030405', twitter='kevin')\n```\n\nYou can also get a specific lead by giving its id:\n\n```python\nhunter.get_lead(42)\n```\n\nYou can create a lead:\n\n```python\nhunter.create_lead('Quentin', 'Durantay', email='quentin.durantay@unicorn.io', position='CEO', company='Unicorn Consulting', company_size=10, confidence_score=100, website='unicornsaregreat.io', contry_code='FR', postal_code=75000, source='theinternet.com', linkedin_url='www.linkedin.com/in/masteroftheuniverse', phone_number='0102030405', twitter='quentindty', leads_list_id=1)\n```\n\nYou can update a lead by giving its id and the parameters to change (same as creation):\n\n```python\nhunter.update_lead(1, position='CEO in chief')\n```\n\nAnd you can also delete a lead by giving its id:\n\n```python\nhunter.delete_lead(42)\n```\n\n#### Leads Lists methods\n\nYou can get all your Leads Lists:\n\n```python\nhunter.get_leads_lists()\n```\n\nAnd filter the results with these arguments:\n\n```python\nhunter.get_leads_lists(offset=3, limit=2)\n```\n\nYou can get a specific Leads List by giving its id:\n\n```python\nhunter.get_leads_list(42)\n```\n\nYou can create a Leads Lists:\n\n```python\nhunter.create_leads_list('Ultra hot prospects', team_id=1)\n```\n\nYou can update a Leads List by giving its id:\n\n```python\nhunter.update_leads_list(42, 'Ultra mega hot prospects', team_id=2)\n```\n\nAnd you can finally delete a Leads Lists by giving its id:\n\n```python\nhunter.delete_leads_list(42)\n```\n\n### Information\n\nThis library is still in development, don't hesitate to share bugs if you find some (normally it's good, but you never know :p ).\n\n### Contribute\n\nIt's my first (ever) open-source library! So it can be improved. Feel very welcome to fork it and ask for pull requests if you find something buggy or lacking ;)\n\n### Have a nice day scraping B2B emails with PyHunter!\n","funding_links":[],"categories":["Python Search Automation Tools"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVonStruddle%2FPyHunter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVonStruddle%2FPyHunter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVonStruddle%2FPyHunter/lists"}