GithubHelp home page GithubHelp logo

isabella232 / clearbit-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grafana/clearbit-python

0.0 0.0 0.0 51 KB

Clearbit Python library

Home Page: https://clearbit.com/docs

License: MIT License

Python 100.00%

clearbit-python's Introduction

Clearbit

A Python API client to https://clearbit.com.

Installation

To install the Clearbit Python bindings, run:

pip install clearbit

Or

easy_install clearbit

Usage

First authorize requests by setting the API key found on your account's settings page.

import clearbit
clearbit.key = 'mykey'

You can also set the API key via the CLEARBIT_KEY environment variable.

Then you can lookup people by email address. If the email's domain is corporate we'll also return a company response.

response = clearbit.Enrichment.find(email='[email protected]', stream=True)

See the documentation for more information.

Company lookup

You can lookup company data by domain name:

company = clearbit.Company.find(domain='uber.com',stream=True)

If the company can't be found, then None will be returned.

See the documentation for more information.

Name to Domain

You can search for companies using name as a keyword:

response = clearbit.NameToDomain.find(name='Clearbit')

See the documentation for more information.

Proxy Usage

Passing a proxies dictionary allows you to specify proxy servers to pass the requests through given various protocols.

proxies = {
  'http': 'http://user:[email protected]:8080',
  'https': 'https://user:[email protected]:8080',
}

response = clearbit.Enrichment.find(email='[email protected]', proxies=proxies)

Testing

Set the PYTHONPATH env var to the current directory to load the library locally:

export PYTHONPATH=.

Deploy

clearbit-python's People

Contributors

benmathes avatar bsteven3 avatar davidlumley avatar gcbirzan avatar gregors avatar maccman avatar omarish avatar robholland avatar sheilak avatar tristandunn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.