Home
Softono

Ping Sm

Open source Python
65
Stars
9
Forks
1
Issues
7
Watchers
6 years
Last Commit

 About Ping Sm

Receive an email or Telegram message as soon as Migros Sanalmarket is available for delivery in your neighborhood.

Platforms

Web Self-hosted

Languages

Python

Need Help Installing Ping Sm?

We provide expert installation service for this software. Our team will install, configure, and secure Ping Sm on your server. plans start at just $30.

ping-sm

Run this script periodically as a cron job. It will check if Migros Sanalmarket is available for delivery to your neighborhood in the next 4 days.

How it works

  • Sends you a warning and exits if the cookies are invalid.
  • Exits if delivery isn't available.
  • Sends you a notification if delivery is available.

Notifications

You need a Mailgun domain or a Telegram bot in order to enable notifications. You'll have to rely on logs otherwise.

Installing dependencies

pip3 install -r requirements.txt

Configuraiton

  1. Copy .env.example and name the new file as .env
  2. Set each variable in .env with your own values. Find out your SESSION & remember-me cookies using the developer tools of your favorite browser

Launching

# launch manually
python3 ./__main__.py

# launch manually with notification emails enabled
python3 ./__main__.py --email

# launch manually with telegram messages enabled
python3 ./__main__.py --telegram

# example cron job
* * * * * /usr/bin/python3 /home/utku/git/ping-sm/__main__.py --email 2>&1 >> /home/utku/git/ping-sm/log.log