whybee's blog

By whybee, history, 7 years ago, In English

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 :)

  • Vote: I like it
  • +56
  • Vote: I do not like it

»
7 years ago, # |
  Vote: I like it +9 Vote: I do not like it

Probably check rating[0] > curr for printing "Congratulations". It's not a good idea to congratulate someone on decrease in rating. After completion of system tests, you can also use Codeforces Rating Predictor.

  • »
    »
    7 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thank you, I'll look into it. I hardcoded "congratulations" as I don't think anyone will wait obsessively for results of a contest which screwed up. But yes, I should. I'll update shortly.

    thanks

    • »
      »
      »
      7 years ago, # ^ |
        Vote: I like it +1 Vote: I do not like it

      Try earning 0 or 500 points only in a contest and you will wait for the inevitable :D not only you wait when expecting color change.

      • »
        »
        »
        »
        7 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Now that you put it that way, yes! :P already updated :)

»
7 years ago, # |
  Vote: I like it +9 Vote: I do not like it

I think you should write better Announcement As Putting ScreenShot in the Post and Write details about The Script.

For The Script it's Very Good and Helpful :).

»
7 years ago, # |
Rev. 2   Vote: I like it +9 Vote: I do not like it
if rating[0] != curr:
		pymsgbox.alert("Your new rating is : " + rating[0], 'Congratulations!')
		break

So what if ratings have been updated and somebody's rating change turned out to be 0? This would cause them to wait even after the ratings are updated.

»
7 years ago, # |
  Vote: I like it +1 Vote: I do not like it

I use this chrome extension: CF-Predictor and it gives me almost same rating as CF. You can try this. :)

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by whybee (previous revision, new revision, compare).

»
7 years ago, # |
  Vote: I like it +1 Vote: I do not like it

I felt like I was reading a commercial. No offense just kidding :)

  • »
    »
    7 years ago, # ^ |
      Vote: I like it +4 Vote: I do not like it

    I felt I was reading a compliment. thanks :) more the number of people use what I wrote, happier I am!