joelgrus/data-science-from-scratch

Y Combinator Scraping

mshearer0 opened this issue · 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