Git Product home page Git Product logo

oink-export's Introduction

This python script converts your Oink CSVs (those with location info only) to a pretty JSON to do whaterver you please with. 

Features:
* Export to single JSON
* Include foursquare venue info (name, lat, long, address, etc.)
* Removes entries with no location
* Merges comments and ratings for those available

Requirements:
* Oink export CSV (can be requested on http://oink.com)
* Foursquare OAUTH token (see section below)
* Python 
* Terminal

Get Foursqaure OAUTH token:
1. Visit https://developer.foursquare.com/docs/explore#req=users/self
2. Your token is everything after "OAuth token automatically added. https://api.foursquare.com/v2/users/self?oauth_token="

Execution Instructions:
1. copy oink_export.py to same folder as your Oink CSVs
2. open terminal to Oink CSV folder
3. run 'python oink_export.py --token=YOUR_OAUTH_TOKEN_HERE'
4. watch it fly through your data

TODO:
* Take OAUTH token as a paramenter 
* Actually do the OAUTH through the script
* Include Oink TODOs (waiting on Oink team to include them as part of the export)
* Associate images exported to reviews
* Check for proper OAUTH token being passed in for foursquare

oink-export's People

Contributors

filipmares avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

amiknyc

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.