igorsimb / mp-monitor

Django app for scraping Wildberries
1 stars 0 forks source link

Countdown timer till next scrape #83

Open igorsimb opened 5 months ago

igorsimb commented 5 months ago

This looks good: https://github.com/PButcher/flipdown Article with a lot of examples: https://medium.com/geekculture/23-javascript-countdown-timer-for-website-273efc2f5618

django-countdowntimer-model library

igorsimb commented 5 months ago

Implementation

Keep this in mind (source)

You don’t need to keep a “running clock”. Store the time when a task was started, and then when you need to get the elapsed time, calculate the difference between the current time and the start time.

igorsimb commented 4 months ago

As a temporary measure we can just show the next scrape time.