Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4743cd

Browse files
committed
Update docs; ignore cache folder
1 parent c1e94e8 commit f4743cd

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ jeep.json
99
jeep-mfg.json
1010
subaru.json
1111
page.html
12-
cache
12+
cache
13+
install.sh

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,26 @@ Note that, quite often, the "final price" is just the MSRP if the delerships cho
88

99
## Usage
1010

11-
Create the archive subfolder:
11+
Create the archive and cache subfolders:
12+
1213
```
1314
mkdir archive
15+
mkdir cache
1416
```
17+
1518
You can make yourself a shell script containing this and then add it to a cron job if you'd like.
19+
1620
```
1721
node main.js > lastrun.log 2>&1
1822
```
1923

24+
Fetching is done via a cache which expires on the hour. Be sure to clear the `cache` folder every so often.
25+
2026
### Subaru
2127

22-
If you don't want to look for Outback Onyx editions, simply perform the search at any dealership, look at the URL query string, and put that into [subaru.js](subaru.js#L58).
28+
If you don't want to look for Outback Onyx editions, simply perform the search at any dealership, look at the URL query string, and put that into `fetchCars` in [subaru.js](subaru.js).
2329

2430
### Jeep
2531

26-
It's... more complicated.
32+
It's... more complicated. Currently attempting to extract matching inventory from the manufacturer website (which makes for very exact results), and then traversing through dealership search results to match cars by VIN so we can get the real price.
2733

0 commit comments

Comments
 (0)