Ben McCann

Co-founder at Connectifier.
ex-Googler. CMU alum.

Ben McCann on LinkedIn Ben McCann on AngelList Ben McCann on Twitter


OAuth in a command line script


Many APIs today use OAuth. If you want to use an OAuth API from the command line, then what I recommend is starting a web server locally to handle the OAuth callback. Here’s a quick and dirty example of doing that in Python. #!/usr/bin/env python from flask import Flask,redirect, request import json import logging import Read More

Using Python’s Pandas inside IPython Notebook


IPython is a cool shell to run Python from and Pandas is a Python library for holding tabular data similar to R’s data frame. To install the software run: sudo apt-get install python-pip libzmq-dev python-dev g++ libfreetype6-dev libpng12-dev libblas-dev liblapack-dev gfortran cython libhdf5-serial-dev sudo pip install ipython sudo pip install tornado sudo pip install pyzmq Read More