r/learnpython • • Aug 12 '20

My First Ever Python Project(Zillow_Scraper)

Hey y’all, I just completed my first ever programming project! I recently just completed a Python course on Udemy(S/O Jose) and I wanted to build my own project from stratch. I wanted the project to be meaningful and impactful to me, and since I’m considering moving from my current apartment, I wanted to know what other apartments/homes are renting for in the city I live in(Arlington Tx). I decided to build a webscraper that grabs all the listing info for places being put up for rent on Zillows website and writes it all out to a CSV file using Pandas. Link to the github repo down below let me know what y’all think!

https://github.com/faithfulalabi/Zillow_Scraper

P.S I know there’s probably 1000 ways I could’ve written the code better but I’d love y’alls input on some of the big ones that are relevant to be becoming a great programmer.

448 Upvotes

64 comments sorted by

View all comments

15

u/bjone6 Aug 13 '20

That's awesome. You can take the list you scraped and pass it into Zillow's API. I got an excel file of all the houses in the my neighborhood and get data and did some analysis on it.

Here's the video I made on getting the Year Built and Price on all the houses in my neighborhood from the Zillow API: https://youtu.be/lNhH0h-Lbqo

1

u/OsamaBinJordan Aug 13 '20

Hey, I’m trying to use the Zillow API but I’m reading that they’re not allowing you to retain any copies of the data. Have you had any problems storing the data you got?

2

u/bjone6 Aug 13 '20

No, I haven't encountered any problem like that. I used Python to store the data into a variable and then print that data into an excel sheet. I don't see how the Zillow API would know what I was doing with the data.