+
Skip to content

tomba-io/python

Repository files navigation

Tomba Tomba Email Finder Python Client Library

This is the official Python client library for the Tomba.io Email Finder API, allowing you to:

  • Domain Search (Search emails are based on the website You give one domain name and it returns all the email addresses found on the internet.)
  • Email Finder (This API endpoint generates or retrieves the most likely email address from a domain name, a first name and a last name..)
  • Author Finder (Instantly discover the email addresses of article authors.)
  • Linkedin Finder (The Linkedin lets you find the current job title, company, location and social profiles of the person behind the linkedin URL.)
  • Email Verifier (checks the deliverability of a given email address, verifies if it has been found in our database, and returns their sources.)
  • Email Enrichment. (Locate and include data in your emails.)

Getting Started

You'll need an Tomba API access token, which you can get by signing up for a free account at https://app.tomba.io/auth/register

The free plan is limited to 25 search request and 50 verification a month, To enable all the data fields and additional request volumes see https://tomba.io/pricing.

Requirements

  • Python 3.5+
  • requests library

Installation

To install via PyPI:

pip install tomba-io

Quick Start

from tomba.client import Client

client = Client()
client.set_key('YOUR_KEY').set_secret('YOUR_SECRET')

Usage

Domain Search

from tomba.services.domain import Domain

domain = Domain(client)
result = domain.domain_search('stripe.com')
print(result)

Email Finder

from tomba.services.finder import Finder

finder = Finder(client)
result = finder.email_finder('tomba.io', 'Mohamed', 'Ben rebia')
print(result)

Email Verifier

from tomba.services.verifier import Verifier

verifier = Verifier(client)
result = verifier.email_verifier('b.mohamed@tomba.io')
print(result)

Examples

Sample codes under examples/ folder.

Error Handling

All errors raise TombaException:

from tomba.exception import TombaException

try:
    result = domain.domain_search('stripe.com')
except TombaException as e:
    print(f"Error: {e.message} (code: {e.code})")

Documentation

See the official documentation.

Other Libraries

There are official Tomba Email Finder client libraries available for many languages including PHP, Python, Go, Java, Ruby, and many popular frameworks such as Django, Rails and Laravel. There are also many third party libraries and integrations available for our API.

https://docs.tomba.io/libraries

About Tomba

Founded in 2021, Tomba prides itself on being the most reliable, accurate, and in-depth source of Email address data available anywhere. We process terabytes of data to produce our Email finder API, company.

image

Contribution

  1. Fork it (https://github.com/tomba-io/python/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

Please see the Apache 2.0 license file for more information.

About

Official Python library for Tomba Email Finder

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载