Skip to content

Instantly share code, notes, and snippets.

@yuvalkarmi
Last active March 23, 2017 15:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuvalkarmi/79117f271f438f0bb32899f7bf22654c to your computer and use it in GitHub Desktop.
Save yuvalkarmi/79117f271f438f0bb32899f7bf22654c to your computer and use it in GitHub Desktop.
// this script is meant to give a pretty good general idea of whether a VC is likely to invest in a seed round based on recent investments
// go to this url and paste into the javascript console (replace "founders-fund" with the appropriate VC)
// https://www.crunchbase.com/organization/founders-fund/investments
// to open the console you can right click anywhere, choose Inspect, and then click on the Console tab
// this outputs a tab separated list with:
// total -- total number of investments that appear on the page (for crunchbase by default this is 40 unless you scroll down the page to load more)
// seed -- total number of seed investments that appear on the page
// seed frequency -- this is simply total / seed – a decent indicator of how often this VC has recently invested in a seed round
// average seed round size -- in millions
// some notes and limitations:
// 1. euros are treated as dollars
// 2. averaging anything might not be a good indicator if there are outliers (exceptionally low or high investments -- those will throw the average off)
function round(value, decimals) {
return Number(Math.round(value+'e'+decimals)+'e-'+decimals);
}
var totalAmount = 0;
var count = 0;
var allCount = $(".section-list.table.investors tr td:nth-child(3)").length;
$(".section-list.table.investors tr td:nth-child(3)").each(function(){
if($(this).text().match(/Seed/)){
var r = $(this).text().match(/\€?\$?([0-9.]+([Mk]))/);
if(r && r[1] && r[2]){
var denomination = r[2];
var amount = parseFloat(r[1]);
// convert to millions if under a million
amount = denomination === 'M' ? amount : amount / 1000;
totalAmount += amount;
count += 1;
}
}
});
if(count > 0){
var seedFrequency = round((count/parseFloat(allCount)*100), 2);
var averageSeedInvestment = round((totalAmount / count), 2);
console.log("total\tseed\tseed frequency\taverage seed round size (millions)")
console.log(allCount+"\t"+count+"\t"+seedFrequency+"%\t$"+averageSeedInvestment)
}else{
console.log(0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment