Small CLI program that will send you a Telegram message for every new posts on the specific links of the Ebay Kleinanzeigen website.
No API required - Only URL of the query.
- Clone this repository
git clone https://github.com/vinc3PO/ebayKleinanzeigenAlert
- Navigate to the cloned repository
cd ebayKleinanzeigenAlert
- Create a Telegram Bot
- Open the chat with @BotFather
- Enter
/newbot
- Enter the name of your Bot (e.g. eBay Kleinanzeigen Bot)
- Enter an unique username for your bot (e.g. my_ebay_kleinanzeigen_bot)
- Copy the token
- Get you Telegram Message ID
- Open the chat with @RawDataBot
- Enter
/start
- Copy the message ID. Either from
message/from/id
ormessage/chat/id
. The message ID looks like417417807
.
- Set environment variables TOKEN and CHAT_ID. Or hard code your token & message ID in
ebAlert/core/config.py
. - Install the dependencies
pip install .
- Run the
ebAlert
CLIpython -m ebAlert
-
ebAlert links [opts]
to show, add, remove links -
ebAlert links --help
to get list of options for the links -
ebAlert start
to start receiving notification -
ebAlert links -a "https://www.ebay...k0l9354r20"
This assumes that you just had a look through the web page already, so no notification will be send. -
Typically, this would be run as a cron job on an hourly basis.
- A telegram bot API token and your personal conversation id
- Python 3
- click, requests, bs4 and sqlalchemy (arguably sqlalchemy is a little overkill for that purpose)
1.4 -> 1.5
- Update Requirement for requests
- Change Domain Name
1.2 -> 1.4
- Fix change in Ebay class naming
1.1 -> 1.2
- No price fix (dandud100)
- Updated Readme (nilsreichardt)
1.0 -> 1.1
- Refactoring
- Removing most of the data added to database as it was not used
- Move to SQLalchemy 1.4
- Adding testing suite
- Better handling of special characters that messed up the telegram message
- Preparing for multiple chat id
0.6 -> 1.0
- Refactoring.
- Add TOKEN and CHAT_ID taken from environment variable.
- Fix title and city and distance if so.
- Update telegram message.
- add functionality to add links directly via telegram.
** dev_telegram **
- Bot data stored in the database
- Multibot allowed
- Possibility to choose towards which bot goes which notification
- Docker