Skip to content

vinc3PO/ebayKleinanzeigenAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Clone this repository
    git clone https://github.com/vinc3PO/ebayKleinanzeigenAlert
  2. Navigate to the cloned repository
    cd ebayKleinanzeigenAlert
  3. Create a Telegram Bot
    1. Open the chat with @BotFather
    2. Enter /newbot
    3. Enter the name of your Bot (e.g. eBay Kleinanzeigen Bot)
    4. Enter an unique username for your bot (e.g. my_ebay_kleinanzeigen_bot)
    5. Copy the token
  4. Get you Telegram Message ID
    1. Open the chat with @RawDataBot
    2. Enter /start
    3. Copy the message ID. Either from message/from/id or message/chat/id. The message ID looks like 417417807.
  5. Set environment variables TOKEN and CHAT_ID. Or hard code your token & message ID in ebAlert/core/config.py.
  6. Install the dependencies
    pip install .
  7. 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

Watch on YouTube:
https://youtu.be/lAqDkUdGKy0

About

Telegram Alert for ebay kleinanzeigen posts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages