This telegram bot scrapes the most recent offers from wg-gesucht.de and sends them via telegram to the client.
git clone https://github.com/nextlevelshit/wggesucht-bot.git
# or
git clone [email protected]:nextlevelshit/wggesucht-bot.git
npm install
# or
yarn
This script will generate a config.json
and scrapoxy.json
file to your root directory.
npm run init
// in config.json
{
"telegram": {
"token": ""
},
"interval": 1000,
"source": "",
"host": "",
"opts": {
"proxy": "",
"tunnel": false
}
}
// in scrapoxy.json
{
"commander": {
"password": "YOUR_PASSWORD"
},
"instance": {
"port": 3128,
"scaling": {
"min": 1,
"max": 2
}
},
"providers": [{
"type": "digitalocean",
"token": "",
"region": "",
"size": "",
"sshKeyName": "",
"imageName": "",
"tags": ""
}]
}
// in bot.json5
{
apps : [
{
name : "scrapoxy",
script : "scrapoxy",
args : ["start", "scrapoxy.json", "-d"],
kill_timeout : 30000,
},
{
name : "bot",
script : "node",
args : ["index.js"],
kill_timeout : 30000,
},
],
}
...
npm run start