Skip to content

Instantly share code, notes, and snippets.

@stephen-puiszis
Created May 11, 2013 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephen-puiszis/5560863 to your computer and use it in GitHub Desktop.
Save stephen-puiszis/5560863 to your computer and use it in GitHub Desktop.
Crunchbase Individuals
#----- Individuals------#
require 'open-uri'
require 'json'
base_url = "http://api.crunchbase.com/v/1/"
key = "atsvjzz7q9apzywd9ex3t67e"
api_key = "&api_key=#{key}"
people = "people.js?"
data = JSON.parse(open(base_url+people+api_key).read)
individual_perma = Array.new
data.each do |i|
individual_perma << i["permalink"]
e = Entity.new
e.name = i["first_name"] + " " + i["last_name"]
e.perma = i["permalink"]
e.kind = "individual"
e.save
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment