GithubHelp home page GithubHelp logo

tap-duedil's Introduction

tap-duedil

This is a Singer tap that produces JSON-formatted data following the Singer spec.

This tap:

Quick Start

1. Create and source a virtualenv

$ virtualenv env
$ source env/bin/activate

2. Install from source

$ pip install .

3. Create a config file

You must create a JSON configuration file that looks like this:

{
    "api_key": "..."
}

You can find your API Key in the DueDil web interface.

4. Run the Tap in Discovery Mode

A script has been provided to generate a catalog.json file from the JSON Schemas provided for this tap. Run:

$ python get_catalog.py > catalog.json

to create a catalog file.

5. Run the tap in Query mode

First, create a JSON file containing your company search criteria.

# company-query.json
{
    "criteria": {
        "countryCodes": {
            "values": [
                "GB"
            ]
        }
    }
}

Next, run the tap in query mode:

$ tap-duedil query -q company-query.json -c config.json -p catalog.json --companies companies.txt

This command will create a text file called companies.txt, containing one company per line. When the tap is run in "sync" mode, the tap will use this file to sync each endpoint for each company.

6. Run the tap in Sync mode

$ tap-duedil sync -c config.json -p catalog.json --companies companies.txt

The output of tap-duedil sync .... can be piped to target-stitch to load the data into your warehouse.

A subset of streams can be selected using the --streams argument to tap-duedil sync. For more information on these parameters, run tap-duedil sync -h


Copyright © 2017 Fishtown Analytics

tap-duedil's People

Contributors

drewbanin avatar dylanbaker avatar fred-shaykis 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.