Candidate for M.S. in Business Analytics at Baruch College.
Apartment Data Web Scraping
This is a coursework of Programming for Business Analytics I took this semester. The programming language is Python.
———
I want to get name, address, number of bedrooms and price of each apartment which is listed on the first four pages of the website https://www.apartmenthomeliving.com/new-york-city-ny?page= and use DataFrame to represent a table of data with rows and columns. Then, output as a csv file.
The difference in url of each page is only at the page=
On each page, under <div id="property_list">, contains all names, addresses, number of bedrooms and prices of each property I want of that page.
I look for property name by class="property_link"
I look for property address by class="address"
I look for number of bedrooms by class="bedrooms"
I look for prices by class="prices"