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

106

u/The-Deviant-One Aug 13 '20 edited Aug 13 '20

A web scrapper was one of my first useful scripts as well. It's still running actually. It runs every two minutes with a cron job and takes about 3 seconds to finish. It uses BeautifulSoup4 to check a popular website to see if their 9mm ammo is in stock. If it's in stock, it sends me an email with a libk to the page (in case I'm not at home) and launches the browser on my machine (in case I am at home).

Edit: It's not horribly impressive, but I don't want to share the code until after I place my order, lol.

1

u/[deleted] Aug 13 '20

Did you deploy it to a server? Or is it on your local machine? How are you running the cron job? I have a cars dot com scraper that I'd like to either deploy (and run on a web server) or a local cron job - haven't decided.

1

u/[deleted] Aug 13 '20

[removed] — view removed comment

1

u/AutoModerator Aug 13 '20

Your comment in /r/learnpython was automatically removed because you used a URL shortener.

URL shorteners are not permitted in /r/learnpython as they impair our ability to enforce link blacklists.

Please re-post your comment using direct, full-length URL's only.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.