Skip to content

Commit 837155a

Browse files
committed
2 parents 3c55d80 + a4947c3 commit 837155a

91 files changed

Lines changed: 10 additions & 16056 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,11 @@ Open `auth.js` file in any editor of your choice. You will find configuration fo
124124

125125
## Step 7
126126
Go to the terminal window at `delivery-finder` folder
127-
`You will have to open separate terminal windows for finding each retailer's availability window`
128-
when you are at `/delivery-finder` folder, follow the step below:
127+
128+
And run this command
129+
`npm install`
130+
131+
Please note, you will have to open `separate terminal windows` for finding each retailer's delivery availability. Now at `/delivery-finder` folder in the terminal window, follow the step below:
129132

130133
```
131134
For instacart, run:

config/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const instacart = {
88
}
99
// to find availability in Amazon Wholes Food, replace XXXXX with value of `cookie` you collected in Step 3
1010
const amazonWholefoods = {
11-
cookie: "XXXXX"
11+
cookie: 'XXXXX'
1212
}
1313
// to find availability in Amazon Fresh, replace XXXXX with value of `cookie` you collected in Step 3
1414
const amazonFresh = {

finder.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ const retalierConfig = {
6262
}
6363
}
6464

65-
const gunzip = require('zlib').createGunzip()
6665
const sleep = require('sleep')
6766
const https = require('https')
6867
const player = require('play-sound')()
@@ -98,22 +97,20 @@ function beep () {
9897
function pingRetailer (retailer, freqInterval, confirmConfig) {
9998
const options = {
10099
headers: {
101-
cookie: retailer.cookie,
102-
'Accept-Encoding': 'gzip, deflate, br'
100+
cookie: retailer.cookie
103101
}
104102
}
105103

106104
const req = https.get(retailer.url, options, resp => {
107105
let data = ''
108106

109-
resp.pipe(gunzip)
110107
// A chunk of data has been recieved.
111-
gunzip.on('data', (chunk) => {
108+
resp.on('data', (chunk) => {
112109
data += chunk
113110
})
114111

115112
// The whole response has been received.
116-
gunzip.on('end', () => {
113+
resp.on('end', () => {
117114
let responseString = ''
118115
if (resp.statusCode != 200) {
119116
if (confirmConfig) {
@@ -155,8 +152,7 @@ function pingRetailer (retailer, freqInterval, confirmConfig) {
155152
} else {
156153
const responseString = data
157154
}
158-
console.log(responseString)
159-
console.log(retailer.signature)
155+
160156
if (responseString.indexOf(retailer.signature) > -1) {
161157
console.log(`${new Date().toString()} - ******** WOHOOOO FOUND A DELIVERY WINDOW, GO TO YOUR ALREADY OPENED CART WEB PAGE AND REFRESH THE PAGE TO SEE AVAILABLE WINDOWS *********`)
162158
while (true) {

node_modules/find-exec/.travis.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

node_modules/find-exec/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

node_modules/find-exec/README.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

node_modules/find-exec/index.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

node_modules/find-exec/package.json

Lines changed: 0 additions & 63 deletions
This file was deleted.

node_modules/find-exec/test/all.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

node_modules/find-exec/test/shims/bar

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)