Блог пользователя whybee

Автор whybee, история, 6 лет назад, По-английски

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

  • Проголосовать: нравится
  • +56
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится +9 Проголосовать: не нравится

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.

  • »
    »
    6 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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

    • »
      »
      »
      6 лет назад, # ^ |
        Проголосовать: нравится +1 Проголосовать: не нравится

      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.

»
6 лет назад, # |
  Проголосовать: нравится +9 Проголосовать: не нравится

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

»
6 лет назад, # |
Rev. 2   Проголосовать: нравится +9 Проголосовать: не нравится
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.

»
6 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

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

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
6 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

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

  • »
    »
    6 лет назад, # ^ |
      Проголосовать: нравится +4 Проголосовать: не нравится

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