Coder Social home page Coder Social logo

nkbolg / find-a-flat-bot Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 5.0 26 KB

Телеграм-бот для отправки нотификаций о подходящих объявлениях о сдаче квартир на avito.

Python 100.00%
avito-parser telegram-bot

find-a-flat-bot's Introduction

find-a-flat-bot

Для работы требуется Python 3. Перед началом работы проверьте доступность сервера api.telegram.org. Если он заблокирован можно поднять https-прокси и воспользоваться версией бота из ветки proxy.

Использование:

  1. Создайте своего бота с помощью BotFather
  2. Пропишите его токен в переменную среды FINDAFLATTOKEN
  • Опционально можно создать виртуальное окружения для питона командой python -m venv venv и активировать его командой ./venv/Scripts/activate
  • Бот может также показывать местоположение квартиры с помощью точки на карте. Для этого используется бесплатный сервис Yandex Geocoder, токен от которого можно задать через переменную среды GEOCODETOKEN. В случае отсутствия токена карты с местоположением генерироваться не будут.
  1. Установите зависимости проекта с помощью команды pip install -r requirements.txt
  2. Запустите бота командой python main.py
  3. Отправьте в телеграм-чат с ботом команду /start %avito_url%

Чтобы перестать получать новые нотификации от бота отправьте ему команду /stop

find-a-flat-bot's People

Contributors

nkbolg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.