Coder Social home page Coder Social logo

divar-alert's Introduction

Divar Alert (Telegram & Discoord)

Recieve alert when new ad gets published on divar. On telegram or discord or both

  • set following envirment variables or change them in the code:divar.py
SEARCH_CONDITIONS: // link of divar search resaults without "https://divar.ir/s/" at the begining
BOT_TOKEN: // in case u want to recieve messages on telegram; get it from https://t.me/BotFather 
BOT_CHATID: // in case u want to recieve messages on telegram; your telegram user id ( get from https://t.me/getidsbot) after sending a message to the bot you've created 
HTTP_PROXY: // in case u want to recieve messages on telegram
HTTPS_PROXY: //in case u want to recieve messages on telegram
DISCORD_HOOK:// in case you want to recieve message on discord , guide:https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks

As a docker container

  • you can run your container on https://liara.ir/
  • or just build and run it on your server
docker build --rm -t my-test-bot .

docker run -d -t -i \
            -e "HTTP_PROXY=$HTTP_PROXY" \ 
            -e "HTTPS_PROXY=$HTTPS_PROXY" \ 
            -e "SEARCH_CONDITIONS=shiraz/rent-apartment?credit=50000000-90000000&size=-60&parking=true" \
            -e "BOT_TOKEN=$BOT_TOKEN" \
            -e "DISCORD_HOOK=$DISCORD_HOOK" \
            my-test-bot

divar-alert's People

Contributors

mojtabaasadi avatar

Stargazers

Saeed Ghezel Arsalan avatar

Watchers

 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.