A tool for scraping categories found on bordershop.com webpage and save all items to a database. Then output new entires and/or updates to a Telegram channel.
Version 2.0 of bordershop-bot is released!
The new version has the following changes/features:
* Removed the need for environment variables
* Automated setup for db with schema and initial population
* Telegram settings and categories are defined in a config.json
* Sqlite is now used, no external databse is needed
* Added test-telegram config mode
* Added debug for telegram
* Added debug for stdout rather than sending to telegram
* Logic rewritten
* Code cleanup
A config.json is required to run located in the config/ dir, the file should look like this:
{
"Telegram": {
"tgAPIkey": "xxx",
"tgChannel": "xxx"
},
"categories": [x, y, z]
}
Database schema can be found in the db folder: db.schema
go run bordershop.go
-debug
Turns on debug for telegram
-stdout
Turns on stdout rather than sending to telegram
-telegram-test
Sends a test message to configured telegram channel