ebayKleinanzeigenAlert - (ebAlert)
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.
Install
- 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
or message/chat/id
. The message ID looks like 417417807
.
- 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
CLI
python -m ebAlert
Usage & Example
-
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.
Requirements
- 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)
ChangeLog
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.
Future Plans
- add functionality to add links directly via telegram.
Development Branch
dev_telegram
- Bot data stored in the database
- Multibot allowed
- Possibility to choose towards which bot goes which notification
- Docker
Featured German Tutorial
https://youtu.be/lAqDkUdGKy0