~/talk

Web Scraping with BeautifulSoup & Yelp's API

Talkat PyData Los Angeles 2019 · 2019-12-03..12-05· [python]
links:none on file
slides:none on file

Scrapes YellowPages HTML with BeautifulSoup + requests, targets h2.class="n", div.phone phone-primary, div.street-address and div.locality, appends placeholders for missing values and zips lists into a pandas DataFrame (result: 3,032 entries scraped). Queries Yelp via the Yelp Fusion API using 50-item limits and offset paging, runs nested loops to collect multiple batches (offset bug appears then gets fixed), shares Google Colab notebooks at bit.ly/yp_scrape so the code runs end-to-end.

AI-written summary · about

  1. 0:00Introduction
  2. 4:45Scraping data uses
  3. 9:22Tools setup
  4. 12:13Scraping Yellow Pages
  5. 25:23Preparing the notebook and importing libraries
  6. 27:02URL list creation
  7. 33:25Extracting business data
  8. 49:54Data validation
  9. 51:46Switching to Yelp API
  10. 54:45Yelp API setup
  11. 1:01:43Yelp troubleshooting
  12. 1:03:31Final Yelp extraction & Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.