danielmcgraw / apple-refurbished-web-scraper Goto Github PK
View Code? Open in Web Editor NEWWeb scraper that scrapes Apples referbished site for your regex search term.
Home Page: http://danielmcgraw.com
Web scraper that scrapes Apples referbished site for your regex search term.
Home Page: http://danielmcgraw.com
I’ve been looking for a refurbished mac for development recently and found myself leaving the refurbished site window open in the background and constantly checking the page. What a waste of time. Solution: write a web scraper to do the work for me. Below is a super simple scraper I wrote up that looks at Apple’s refurbished page and scrapes for search terms (e.g. Mac mini, iMac, etc.). If new computers are listed that match your criteria it will shoot off an email (using a gmail account) to you with the listings description, price, and product URL. The usage is simple. From a prompt start up python. >>> import AppleRefurbScraper >>> scraper = AppleRefurbScraper.RefurbScraper('Gmail from address', 'Gmail from password', 'To address', 'search term', 'loop delay time in seconds') >>> scraper.loop() The search terms are case sensitive. The applicable search terms are: MacBook MacBook Air MacBook Pro Mac mini iMac Mac Pro Xserve Also note that I use regex to match the search term so feel free to use a regex string as the search term. If you like this project please check out my site(http://danielmcgraw.com/) subscribe to my feed(http://danielmcgraw.com/feed/), and follow me on twitter(http://twitter.com/danielmcgraw) or tumblr(http://danielmcgraw.tumblr.com/) and say hi.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.