data-science-from-scratch icon indicating copy to clipboard operation
data-science-from-scratch copied to clipboard

Y Combinator Scraping

Open mshearer0 opened this issue 3 years ago • 0 comments

The tags have changed and the page currently lists 137 companies.

I found the following worked:

companies = list({a.text
                  for a in soup("a")
                  if "company-name" in a.get("class", ())})
assert len(companies) == 137

mshearer0 avatar Mar 06 '21 17:03 mshearer0