-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.js.example
50 lines (40 loc) · 1.81 KB
/
config.js.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
var config = {
// Urls of the kijiji search pages you want to scrape
// hint - use the filters as much as you want then copy the resulting url
urls: [
'http://kiji...', // simple style where no additional filtering of results is needed
{
url: 'http://kij...'
ignores: ['search', 'strings', 'that you do not want to be contained in the ad'] // ex: "coffee" for a brew search, where you only want beer related results
}
],
email: {
// The email address you want to have the ads sent to
targetEmail: '',
// Just the username of the gmail address Eg. `myAccount` from `[email protected]`
gmailUser: '',
// The password of the gmail address (or empty if oauth is used)
gmailPassword: '',
// see here to get setup for oauth: https://medium.com/@pandeysoni/nodemailer-service-in-node-js-using-smtp-and-xoauth2-7c638a39a37e
// notes:
// - the scope required for sending emails is: https://mail.google.com/
// - you will need to join the "Risky Access Permissions By Unreviewed Apps" for this to work:
// https://groups.google.com/forum/#!forum/risky-access-by-unreviewed-apps
oauth: {
clientId: "",
clientSecret: "",
refreshToken: ""
}
},
map: {
// get yours here: https://developers.google.com/maps/documentation/javascript/get-api-key
googleMapsApiKey: '',
// lat,long example: '44.7891217,-63.6250432'
homeLocation: ''
},
// Check evert X minutes
minutesBetweenCheck: 10,
// Below options require a server call per ad (must download the ad's webpage), enable at own risk
highQualityEmails: false
};
module.exports = config;