Git Product home page Git Product logo

intercom-tagger's Introduction

Intercom Tagger

Intercom Tagger is a tool that let's you add Intercom users to a tag. This is handy as it might be hard to filter users for using the Intercom built in interface. At the moment you can use a text file containing one attribute value per line and a query running on a CrateDB database as inputs.

Setup

Clone this repo.

git clone https://github.com/joemoe/intercom-tagger.git

Activate your virtualenv. Then install the requirements by running:

pip install -r requirements.txt

Usage

The tool has a built in help.

tag.py -h

Loading users from a file

You need to have a file which contains one attribute value per line. As attribute you can use whatever you've setup on intercom, usually something like email or user_id.

A file containing user_ids would look like this:

e2a8d853ffbb0628da27ed06bcaf08b8
039535c41a975c837baee2174263f632
0ace7b7212d1a24b7021885858637a20
089b277181c30f754dae7b6c78f03968
113669609eb14c1b55b2bc34752f58c3

Then run, see the -a parameter passing the name of the attribute:

tag.py -f user_ids.txt -a user_id

Loading files from a CrateDB

If you got your users in a CrateDB database you can pass an query along with some CrateDB hosts. In this example we are selecting the twitter id from the public CrateDB play cluster. We pass twitter_id as the attribute to work with.

tag.py -q "select \"user\"['id'] from tweets limit 10;" -c play.crate.io:80 -a twitter_id

intercom-tagger's People

Stargazers

Julian avatar Micheál Looney avatar

Watchers

James Cloos 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.