The Goal it's to have a bot that Scrach Kijiji to find all my desired Apartment.
- Node
Versions 8.5.0
- NPM
npm install
- Yarn
yarn install
Migrations
npm migrations
Rollback
npm migrations_rollback
You need to create a Slack app to use the bots.
Import your Slack-Token
EXPORT SLACK_TOKEN=xoxp-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX
Add Some informations in the Settings File
{
"CHANNEL":"#YOUR_AMAZING_CHANNEL",
"USERNAME":"BOTS_USERNAME
}
I use this Library
You can personalise your Bots
prefs
: Contains Kijiji ad Search category and locations
{
"locationId": <Kijiji location id>,
"categoryId": <Kijiji ad category id>,
"scrapeInnerAd": true/false (default true)
}
params
: Contains Kijiji Side search to filter your ads you can pass has many argument you want.
{
"minPrice":400
"maxPrice":1800
"locationId":1700281
"categoryId":216
"keywords":petit+italie
"searchView":LIST
"urgentOnly":false
"cpoOnly":false
"carproofOnly":false
"highlightOnly":false
"gpTopAd":false
"sortByName":dateDesc
"adType":OFFER
"adPriceType":
"videoOnly":false
"hasImages":false
"formSubmit":true
"attributeMap%5BadType%5D":%5BOFFER%5D
"attributeMap%5Bnumberbathrooms_s%5D":%5B20%5D
"address":H2S
"radius":2.0
}
For more information you should go here
-
coords
: It's a single point on a map [45.523808,-73.584556] -
box
: It's a paire a point on a map [[45.522499,-73.591313],[45.527092,-73.564397]]-
First array is the down left corner
-
Second array is the top right corner
-
A picture worth a thousand words