GithubHelp home page GithubHelp logo

jeremiesiller / kleinanzeigen_telegram_bot Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 82 KB

Telegram bot that notifies you when there is a new entry on kleinanzeigen or wg-gesucht

License: MIT License

Makefile 5.23% Python 90.53% Dockerfile 4.23%
kleinanzeigen python scraping telegram telegram-bot wg-gesucht

kleinanzeigen_telegram_bot's Introduction

Kleinanzeigen + WG Gesucht Bot

This is a bot that scrapes new entries on Kleinanzeigen and/or WG Gesucht and sends notifications via Telegram when there is a new entry. It helps you stay updated on new listings for any search query you want. I primarily used it to find new listings for apartments and shared flats and thats why wg-gesucht is also supported, but you can just use it as a Kleinazeigen bot if you want.

Usage

To use this bot, follow these steps:

  1. Clone the repository: git clone https://github.com/JeremieSiller/kleinanzeigen_bot.git
  2. Install the dependencies using Poetry: poetry install
  3. rename the example.env file to .env.
  4. Obtain a Telegram Bot token from BotFather and add it to the .env file under TELEGRAM_TOKEN.
  5. Add the url you want to scrape to the .env file under KLEINANZEIGEN_URL and WG_GESUCHT_URL (e.g. https://www.kleinanzeigen.de/s-berlin/anzeige:angebote/hertha-tickets/k0l3331).
  6. If you don't want to use WG Gesucht, set WG_GESUCHT_URL to "".
  7. create file to keep chats persistent: touch chats.ids and set the IDS_FILE_NAME variable in the .env file to the name of the file you created (e.g. chats.ids)
  8. Run the bot: poetry run python main.py
  9. send /start to your bot and it will start scraping the urls you provided and send you a message with the new listings.
  • if you want to use certain filters, just add them on kleinanzeigen/wg-gesucht and copy the new url to the .env file.

Alternatively, you can use Docker to run the bot:

  1. Build the Docker image: docker build -t telegram-scraper .
  2. Run the Docker container: docker run telegram-scraper

License

This project is licensed under the MIT License.

Miscellaneous

This project was created as a learning experience and is not intended for production use. It is not affiliated with Kleinanzeigen or WG Gesucht.

Additional Resources

  • Poetry: A dependency management and packaging tool for Python.
  • BotFather: The BotFather is the one bot to rule them all. Use it to create new bot accounts and manage your existing bots.

kleinanzeigen_telegram_bot's People

Contributors

jeremiesiller avatar

Stargazers

 avatar  avatar

Watchers

 avatar

kleinanzeigen_telegram_bot's Issues

Description for Installing this Script

Hello, I Would like to install this script on my raspberry pi and run it 24/7 is it possible for you to write a detailed description on how to install it and put more than 1 URL from eBay Kleinanzeigen. Thanks a lot !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.