api_posetu.prg

(App, Yugoslavia)

The script for automatic calls to what statcounter.prg will then show as a graph. It makes an API call to StatCounter's website, gets me a short json with just the visit for current and previous month, I extract the numbers and that's it. It writes the current month's visit into statcounter.dbf if sufficiently different from the previous state - which is the day if the month divided by three plus one. So on first 2-3 days it writes on every 2 visits; by the end of month it skips if less than 11 visit since last write. On the first write of a new month, it first writes the final visits for the previous month. That's all. I wrote it on 20-X-2019.. Previously, I tried to write a webpage scraper, which never took off because I didn't know how to pass username and password to it.


Mentions: 29-VII-2019., 20-X-2019., 19-VI-2022., 17-X-2022., 28-IV-2025., 01-VI-2026., homemade, statcounter.prg, in serbian

30-III-2020 - 15-VI-2026