Skip to content

Commit

Permalink
Google Venture added
Browse files Browse the repository at this point in the history
  • Loading branch information
wang502 committed May 7, 2016
1 parent ffdfa1d commit f42731f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
Binary file added slack-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 25 additions & 2 deletions vc.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"kpcb": "http://www.kpcb.com/companies",
"ff": "http://foundersfund.com/portfolio/",
"greylock": "http://www.greylock.com/greylock-companies/",
"gv": "http://www.gv.com/portfolio/"
}

industries = ["advertising", "agriculture-food", "big-data", "chemical-fuels", "consumer", "education", "efficiency", "enterprise", "financial-services", "health", "materials", "power", "robotics", "space", "storage", "transportation"]
Expand Down Expand Up @@ -117,7 +118,7 @@ def getGreylockPortfolio():
url = portfolio_dict['greylock']
# mock browser header
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
headers = { 'User-Agent' : user_agent } []
headers = { 'User-Agent' : user_agent }

http = httplib2.Http()
status, response = http.request(url, 'GET', None, headers)
Expand All @@ -131,6 +132,25 @@ def getGreylockPortfolio():
companies[name] = link
return companies

def getGoogleVenturePostfolio():
url = portfolio_dict['gv']
# mock browser header
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
headers = { 'User-Agent' : user_agent }

http = httplib2.Http()
status, response = http.request(url, 'GET', None, headers)

soup = BeautifulSoup(response)
companies = {}
name = ""
for div in soup.find_all("div", {"class":"grid-card-4"}):
a = div.find('a')
name = a.get('data-name')
url = a.get('href')
companies[name] = url
return companies

def getPortfolio(vc):
vc = vc.lower()
if vc == "a16z":
Expand All @@ -145,11 +165,14 @@ def getPortfolio(vc):
return getKPCBPortfolio()
elif vc == "greylock":
return getGreylockPortfolio()
elif vc == "gv":
return getGoogleVenturePostfolio()

#if __name__ == "__main__":
#print geta16zPortfilio()
#print getKhoslaPortfolio()
#print getSequoiaPortfolio()
#print getKPCBPortfolio()
#print getFFPortfolio()
#getGreylockPortfolio()
#print getGreylockPortfolio()
#print getGoogleVenturePostfolio()

0 comments on commit f42731f

Please sign in to comment.