Code Monkey home page Code Monkey logo

mixpanel-data-export-api's Introduction

Introduction

This is a modified version of the following script:

https://mixpanel.com/docs/api-documentation/data-export-api#libs-python

Which is adapted to support the Data Export API:

https://mixpanel.com/docs/api-documentation/exporting-raw-data-you-inserted-into-mixpanel

Usage

You simply need to set MIXPANEL_API_KEY and MIXPANEL_API_SECRET at the top of the file and then you can start pulling data like follows:

    api = MixpanelExportAPI(
        api_key = MIXPANEL_API_KEY,
        api_secret = MIXPANEL_API_SECRET
    )    
    data = api.request(['export'], {
        'from_date': '2015-09-01',
        'to_date': '2015-09-2',
        'event': ['play video'],
    })    
    pprint.pprint(data)

mixpanel-data-export-api's People

Contributors

josephmmisiti avatar

Stargazers

 avatar vs avatar Pavlo Honcharov avatar Masato Miura avatar

Watchers

Joseph Misiti avatar James Cloos avatar  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.