Pulling down listing data

We'll be using the RentHop site, http://www.renthop.com, to source our listing data. The following screenshot of the site shows the layout of the listings we'll be retrieving:

What we can see is that the listings have the address, the price, the number of bedrooms, and the number of bathrooms. We'll start by retrieving this information for each listing.

We are going to be using the Python Requests library for this task. Requests is dubbed HTTP for humans, and it makes it super easy to retrieve websites. If you want an overview on how to use Requests, the quick start guide is available at http://docs.python-requests.org/en/master/user/quickstart/ ...

Get Python Machine Learning Blueprints - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.