Changes

Jump to navigation Jump to search
4,041 bytes added ,  13:41, 21 September 2020
no edit summary
{{Project|Has project output=Data|Has sponsor=McNair ProjectsCenter
|Has title=Crunchbase Data
|Has owner=Adrian Smart, Grace Tan, Maxine Tao, Connor Rothschild,
|Has start date=June 2017
|Has keywords=Data, Tool, Crunchbase, VC, Angel
|Has project status=Complete
|Is dependent on=Crunchbase Accelerator Equity, Crunchbase Accelerator Founders,
}}
==New Work== File Location: E://McNair/Projects/Accelerators/Summer 2018/Accelerators and UUIDs.xlsx This file is an update of Crunchbase data to correspond with our updated list of accelerators. That updated list of 166 accelerators can be found at: E://McNair/Projects/Accelerators/Summer 2018/Connor Accelerator Work/Accelerator Master Variable List - Revised by Ed V2.xlsx We used SQL to match a huge list of companies downloaded from Crunchbase to our list of accelerators. ===Downloading Data===The download script is written in perl. It downloads from version 3.1 of the Crunchbase API. It is called downloadScriptv3.1 and located in E:\McNair\Software\Database Scripts\Crunchbase2. You can execute it by typing "perl downloadScript.pl" in terminal.Use this key: 662e263576fe3e4ea5991edfbcfb9883 A full list of tables in the database called crunchbase2: organizations organization_descriptions people people_descriptions degrees funding_rounds investments investment_partners investors funds acquisitions ipos events event_appearances jobs category_groups org_parents ===Commands=== Note that these should be done in command line not in the database To open a couple lines of a file: head organizations-clean.txt -n 3 To replace "" with nothing in all of a file: cat organizations.csv | sed s/\"\"//g > organizations-clean.txt  ===Files===  E:\McNair\Software\DatabaseScripts\Crunchbase2 Database is called crunchbase2. In making a table of accelerators and their UUIDs, some match multiple times if you match only on accelerator name. The file(Accelerator Multiple Matches) of those that match multiple times is in: E:\McNair\Projects\Accelerators\Summer2018 If you match on accelerator name and/or accelerator URL, the results can be found in the same location above. It is called 'Accelerators Matched by Name and Homepage URL'. The first sheet includes the results by matching accelerators to crunchbase on organization names AND urls. The second sheet includes the results by matching accelerators to crunchbase data on organization names OR urls. This second sheet also includes results that are manually added in.For a list of accelerators, their matches from the Crunchbase data, and their UUIDs, find the 'Accelerators and UUIDs' file also in the same location as above. This file contains trailing whitespace that has been removed and saved in the file 'Accelerators and UUIDs - clean.txt'.  For the analysis script that obtains the results described above, see 'Analysis.sql' in: E:\McNair\Software\Database Scripts\Crunchbase2 ===Collecting Company Information===Code to build tables is here: E:\McNair\Software\Database Scripts\Crunchbase2\CompanyMatchScript Text file versions of the tables are located in the Z drive. The database is called: crunchbase2 Crunchbase may have blanks and random quotation marks as entries. I had to clean this on textpad. <br>All crunchbase companies and their UUIDs are here: E:\McNair\Projects\Accelerators\Summer 2018\CB Company UUIDs A list of UUIDs for the companies we are interested in can be found in the same place as above. It is called 'Our Company UUID matches'. SQL code to get matches is in the CompanyMatchScript mentioned above. The perl matches were done using Matcher.pl. The single match sheet for SQl contains companies that do not have multiple entries in crunchbase. This is also the case for the Perl single match sheet, and it has also been filtered to remove those that were flagged as multiple matches by Matcher.pl A list for companies, UUIDs, and all other informations is also in the Summer 2018 folder. It is called 'FINAL LIST'. THIS SHEET HAS DUPLICATES THAT ARE IN THE SHEET 'DUPLICATE COMPANIES'. <br> The definite, final list is: E:\McNair\Projects\Accelerators\Summer 2018\The File to Rule Them All.xlsx ==Old Notes from previous work== ===Files and dbases===
The dbase is:
Z:\Crunchbase\CrunchbaseData
===To do===
#Download the data
#Extract top 5 lines
Where, what, etc.
===Importing the data===
To import the data make sure that all 22 crunchbase csv files are on the db server in /bulk/crunchbase/crunchbaseData. Also make sure that the load_crunchbase.sql script is in this directory. Run psql crunchbasebulk to start the db from this directory. Run the command "\i load_crunchbase.sql" to run the script. This will load the contents of the 22 csv files into the db. Check that the number of lines copied into each table matches the actual lines in the csv file. The line numbers have been included in the comments of the load_crunchbase.sql script. See issues section for unexpected results.
Same thing for people - people end point then permalink
===Accelerator Founders Data===
The Crunchbase API can be used to readily access Founders Data. The API is used in the web format: https://api.crunchbase.com/v/3/organizations/company_name/?user_key=662e263576fe3e4ea5991edfbcfb9883, to get a JSON object with alot of data.
E:\McNair\Projects\Accelerators\founders_linkedin.txt
=Combination with [[Accelerator Seed List (Data)]]==Funded by Accelerators===
Ben Baldazo : I used this database and coded in "Z:\bulk\crunchbase\AccFunding.psql" to create a table connecting accelerators (just names) from [[Accelerator Seed List (Data)]] to companies that include the acclerator as an investor. Table was joined using uuids and contains names, domains, some dates (founding), and funding amounts & each column has a suffix that labels what the data regards to (a.k.a. what table it came from)
*More notation and the coding is available in "Z:\bulk\crunchbase\AccFunding.psql"

Navigation menu