This course was created with the
course builder. Create your online course today.
Start now
Create your course
with
Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Web Scraping
Web scraping is just copying and pasting...with style
Intro (1:25)
Course Outline (1:11)
Getting listing information from Airbnb manually
Getting listing information manually (6:29)
How websites work (9:43)
Writing code to get information for one listing
Use Replit to write all of your code (2:09)
Download VS Code to write code in (0:51)
Hello world! (6:01)
Python basics (5:27)
Documenting the steps for our web scraper (9:45)
Getting HTML from airbnb.com (11:09)
Getting information for 1 listing (14:17)
Formatting listings data
Chatting through our formatting changes (1:18)
'replace' method (6:20)
Replacing unwanted text in scrape_airbnb.py (6:59)
'split' method (11:10)
Splitting guest_info in scrape_airbnb.py (7:03)
'strip' method (2:49)
Removing leading and trailing spaces in scrape_airbnb.py (1:46)
Concatenating strings (2:21)
Updating the link in scrape_airbnb.py (1:33)
Getting data for all listings
Now that we're done with 1 listing, let's get all the listings! (3:17)
Using a `for loop` to repeat code (6:05)
Adding conditions to for loops (9:02)
Updating scrape_airbnb.py to get the data for all listings (4:40)
Saving listings data to spreadsheet
We got all the data, now let's store it somewhere! (3:18)
Using lists to store data as our code runs (9:01)
Adding code to scrape_airbnb.py to store listings info (6:41)
Using dictionaries to store the name of the value in addition to the value itself (8:31)
Updating scrape_airbnb.py to store information on each listing in a dictionary (3:52)
Saving listings data into a spreadsheet (7:03)
Getting listings for multiple locations
Our code works for one search result, so now let's get information from multiple search results! (0:53)
Updating scrape_airbnb.py to get listings from multiple locations (12:38)
Wrapping it up
That's a wrap (3:14)
Now that we're done with 1 listing, let's get all the listings!
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock