From d68daabf4bd646604c1ae3a286c5b9abd9acb593 Mon Sep 17 00:00:00 2001 From: Daniel <54587088+Kifixo@users.noreply.github.com> Date: Wed, 10 Feb 2021 01:57:41 +0100 Subject: [PATCH] Update README.md --- README.md | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 840b832..d4b0677 100644 --- a/README.md +++ b/README.md @@ -1 +1,40 @@ -# Wallamonitor \ No newline at end of file +# Wallamonitor +Periodically checks Wallapop for new articles based on specified parameters and notify through Telegram channel. + +### Setup 🔧 +``` +pip install -U python-dotenv +pip install python-telegram-bot +``` + +You will also need to change .env parameters: +``` +TELEGRAM_CHANNEL_ID=@Your_Telegram_Channel_ID +TELEGRAM_TOKEN=Your Telegram Token +`` + +### Usage 🔧 + +``` +$ python -h +usage: alert.py [-h] --name NAME [--latitude LATITUDE] [--longitude LONGITUDE] [--condition CONDITION] + [--min MIN_PRICE] [--max MAX_PRICE] + +Arguments + +optional arguments: + -h, --help show this help message and exit + --name NAME Article name + --latitude LATITUDE Latitude + --longitude LONGITUDE Longitude + --condition CONDITION Item condition: all, new, as_good_as_new, good, fair, has_given_it_all + --min MIN_PRICE Min price + --max MAX_PRICE Max price + ``` + +Example: +``` +$ python alert.py --name ps5 --condition new --min 400 --max 600 +``` + +