Scrapes www.skelbiu.lt every 10 minutes for new listings and sends them to you via Telegram.
- Clone the repo:
git clone https://github.com/Kunigaikstis/scrape-skelbiult.git
. - Open the directory (
cd scrape-skelbiult
). - Run
make install
.
You'll need a .env file at the root of the directory. Two variables are required, which have to be populated by yourself:
SKELBIU_LT_SEARCH_RESULTS_URL
.TELEGRAM_BOT_TOKEN
.
An example can be found in /examples/.env
.
Refine your search on https://www.skelbiu.lt and save the resulting URL into the SKELBIU_LT_SEARCH_RESULTS_URL
.env
variable.
Create a Telegram BOT using the official documentation and save the API token into the TELEGRAM_BOT_TOKEN
.env
variable.
You'll need to subscribe to your newly created bot after running the scraper. This can be done by finding the BOT through the nickname you assigned to it and sending it a message.
In case of unsubscribing (aka deleting the SQLite .db
file), send your bot a new message once the scraper is running.
make start
This repo was created as a fairly quick prototype without the intention of making it into a generic Telegram bot. I run it on my own machine but it could easily be configured to run on a Cloud Function somewhere, given that you switch out SQLite for a cloud-hosted database (like Google Firestore).
MIT License.