https://github.com/jamiew/car-shopping
Some simple scripts to collect data about car prices & mileage. THIS IS HOW I SHOP
https://github.com/jamiew/car-shopping
Last synced: about 1 year ago
JSON representation
Some simple scripts to collect data about car prices & mileage. THIS IS HOW I SHOP
- Host: GitHub
- URL: https://github.com/jamiew/car-shopping
- Owner: jamiew
- Created: 2012-02-03T17:49:36.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-02-03T18:33:26.000Z (over 14 years ago)
- Last Synced: 2025-06-19T03:48:18.960Z (about 1 year ago)
- Language: Ruby
- Homepage: https://github.com/jamiew/car-shopping
- Size: 89.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Car Shopping
============
Some scripts I wrote while doing car purchase research.
**car_csv.rb** will collect year, price & mileage data from
a search results page on [Cars.com](http://cars.com) and dump to CSV
Usage
-----
Edit **car_csv.rb** and put in a cars.com search URL, like [this one](http://www.cars.com/for-sale/searchresults.action?toggleCpo=0&mkId=20041&mdId=21697&minp=0&prMx=17000&rd=100&zc=94117&AmbMkNm=Subaru&AmbMdNm=Outback&AmbMkId=20041&AmbMdId=21697&prMn=&stkTyp=U&cpo=&searchSource=QUICK_FORM&enableSeo=1&alMkId=20041&alMdId=21697)
PROTIP: set the search results limit to something high, since this script does not paginate.
1. `[sudo] gem install mechanize`
2. `ruby car_csv.rb > honda_accord.csv`
3. open the CSV in Excel and make a scatter plot
4. rinse & repeat for other makes/models
5. buy a car
License
-------
This source code made freely available under an MIT license
Authors
-------
* [Jamie Dubs](http://jamiedubs.com) ([@jamiew](https://github.com/jamiew))