✌️Y Combinator directory scraper
A Python scraper for extracting company data from the Y Combinator directory, featuring an interactive web-based explorer.
Y Combinator is a startup accelerator that has invested in over 4,000 companies with a combined valuation exceeding $600B. Notable alumni include Airbnb, Stripe, DoorDash, Coinbase, and Reddit.
macOS:
brew install geckodriverLinux:
wget https://github.com/mozilla/geckodriver/releases/download/v0.35.0/geckodriver-v0.35.0-linux64.tar.gz
tar -xvzf geckodriver-v0.35.0-linux64.tar.gz
sudo mv geckodriver /usr/local/bin/Windows: Download from GitHub releases and add to PATH.
Clone the repository
git clone https://github.com/corralm/yc-scraper.git
cd yc-scraperCreate a virtual environment (recommended)
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activateInstall dependencies
pip install -r requirements.txt# Step 1: Extract company URLs (takes 10-15 minutes)
python yc_links_extractor.py
# Step 2: Scrape company data
cd scrapy-project
scrapy runspider ycombinator/spiders/yscraper.py -o output.jl
# Step 3: Analyze data with Pandas
python -c "import pandas as pd; df = pd.read_json('output.jl', lines=True); print(df.head())"python yc_links_extractor.pyThis script:
scrapy-project/ycombinator/start_urls.txtcd scrapy-project
scrapy runspider ycombinator/spiders/yscraper.py -o output.jlSupported output formats:
.jl) - Recommended for large datasets.json) - Standard JSON array.csv) - Spreadsheet formatimport pandas as pd
# Load data
df = pd.read_json('output.jl', lines=True)
# Basic statistics
print(f"Total companies: {len(df)}")
print(f"Active companies: {len(df[df['status'] == 'Active'])}")
# Top industries
print("\nTop 10 Industries:")
print(df['tags'].explode().value_counts().head(10))
# Geographic distribution
print("\nTop 10 Locations:")
print(df['location'].value_counts().head(10))After scraping, you can launch an interactive web-based explorer:
# Convert scraped data to JSON format for the web UI
python scripts/convert_output_to_json.py
# Launch local web server
python -m http.server 3000Then open http://localhost:3000 in your browser.
Web Explorer Features:
| Attribute | Description | Type |
|---|---|---|
| company_id | Company ID provided by YC | int |
| company_name | Company name | string |
| short_description | One-line description | string |
| long_description | Full company description | string |
| batch | YC batch (e.g., "W23", "S24") | string |
| status | Active, Inactive, Public, etc. | string |
| tags | Industry tags | list |
| location | City | string |
| country | Country code | string |
| year_founded | Year founded | int |
| num_founders | Number of founders | int |
| founders_names | List of founder names | list |
| founder_details | Extended bios and social links | list |
| team_size | Number of employees | int |
| website | Company website | string |
| cb_url | Crunchbase URL | string |
| linkedin_url | LinkedIn URL | string |
| company_id | company_name | batch | status | location | year_founded | team_size |
|---|---|---|---|---|---|---|
| 240 | Stripe | S09 | Active | San Francisco | 2010 | 7000 |
| 271 | Airbnb | W09 | Public | San Francisco | 2008 | 6132 |
| 325 | Dropbox | S07 | Public | San Francisco | 2008 | 4000 |
| 439 | Coinbase | S12 | Public | San Francisco | 2012 | 6112 |
| 531 | DoorDash | S13 | Public | San Francisco | 2013 | 8600 |
Issue: WebDriverException: 'geckodriver' executable needs to be in PATH
Solution:
brew install geckodriver # macOS
geckodriver --version # Verify installationIssue: FileNotFoundError: Start URLs file not found
Solution: Run python yc_links_extractor.py first to generate the URLs file.
Issue: Scraper gets stuck or times out
Solution:
curl https://www.ycombinator.com/companiesEnable verbose logging:
LOGLEVEL=DEBUG python yc_links_extractor.pyimport pandas as pd
import matplotlib.pyplot as plt
df = pd.read_json('output.jl', lines=True)
active = df[df['status'] == 'Active']
batch_counts = active['batch'].value_counts().sort_index()
batch_counts.plot(kind='bar', figsize=(15, 5))
plt.title('Active YC Companies by Batch')
plt.show()# Most common industries
tags = df['tags'].explode()
top_15 = tags.value_counts().head(15)
print(top_15)# Companies by country
countries = df['country'].value_counts()
print(countries.head(10))For a pre-scraped dataset, check out Y Combinator Directory on Kaggle.
MIT License - see LICENSE for details.
Original Author: Miguel Corral Jr.
Web Explorer Contributor: Tario You
Last Updated: October 2025
No open issues yet, or sync has not completed.