Giter VIP home page Giter VIP logo

ping-sm's Introduction

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

ping-sm's People

Contributors

paddlesteamer avatar utkuufuk avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ping-sm's Issues

Checking for fast delivery availability

Hello, and thanks for sharing this.

How can we modify this code to check for fast delivery availability (as in the image below), instead of the availability for the next 4 days?

Screenshot from 2022-05-20 10-14-16

From the Network tab of the Chrome developer tools, I have seen that this information is received via a schedule-info request, from the URL https://www.migros.com.tr/rest/deliveries/schedule-info I guess, but I am stuck at this point. Any help will be appreciated ๐Ÿ™‚

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.