Back to articles
How to Scrape Crunchbase: Startup Funding and Investor Data
How-ToSystems

How to Scrape Crunchbase: Startup Funding and Investor Data

via Dev.to Tutorialagenthustler

Crunchbase is the go-to database for startup funding data. Whether you're a VC analyst or founder doing competitive research, Crunchbase data is invaluable. Using Crunchbase's API import requests class CrunchbaseScraper : def __init__ ( self , api_key ): self . key = api_key self . base = ' https://api.crunchbase.com/api/v4 ' self . headers = { ' X-cb-user-key ' : self . key } def search ( self , query , limit = 25 ): resp = requests . get ( f ' { self . base } /autocompletes ' , headers = self . headers , params = { ' query ' : query , ' collection_ids ' : ' organizations ' , ' limit ' : limit }) return [{ ' name ' : e [ ' identifier ' ][ ' value ' ], ' permalink ' : e [ ' identifier ' ][ ' permalink ' ] } for e in resp . json (). get ( ' entities ' , [])] def get_org ( self , permalink ): resp = requests . get ( f ' { self . base } /entities/organizations/ { permalink } ' , headers = self . headers , params = { ' field_ids ' : [ ' short_description ' , ' founded_on ' , ' funding_tota

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
2 views

Related Articles