Automatic Alerter for Codeforces rating change.

Правка en4, от whybee, 2018-06-23 13:15:20

I believe time is important and checking the rating, again and again, can be bad for productivity
I've made a script you can use, which will automatically notify you once the ratings change. Find it here

Update: I changed the script to pass through any errors like network or server down (of course except KeyboardInterrupt)
HELP: If the ratings still remain the same (unlikely and rare, but possible) how do I notify? can you think of a workaround?

For details how the script is running read more:
basically, I fetched the html code for your profile page. I observed that the rating always lie in the info class div and between " style="font-weight:bold;"> and </span>
I used that to scrape the rating by splitting the string by above observations and after comparing repeatedly to current rating curr you get notified. As simple as that!

When I got the Idea, I went on googling the next one hour and went on to see an Episode of suits :P
Then this happened.

It felt Like magic because I had forgotten that the script is running
Lastly Thanks for reading!
PS: Even though it's just blue, it was a thing to celebrate for me :)

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский whybee 2018-06-23 13:15:20 5
en3 Английский whybee 2018-06-23 10:52:55 129
en2 Английский whybee 2018-06-22 21:06:12 941 added an update for help and explained the code on the gist
en1 Английский whybee 2018-06-22 15:41:41 863 Initial revision (published)