phantom11's blog

By phantom11, 11 years ago, In English

UPDATE : Version 2.0
Rewrote whole code (frontend + parser) from scratch. Here are the changes made(in order of importance in my view) :
- Fixed bugs in parser.
- Div 2 Rounds Unofficial find their place in the standings. (this and this. You can now see Div 2 standings of ONLY Officials, ONLY UnOfficals, as well as both.
- Added some internal securities
- Now have a about us page too. :)
- Much neater and a modular code.

Very often we are interested in knowing our position in our country for a contest. Unfortunately, Codeforces does not provide this feature. An ugly way to do it is to make friends with all your country people. But ofcourse that is ugly, and programmers are supposed to be smart.

So I decided to write a scraper and do it on my own. When I graduated this year, and had some time in my pocket, franky and I made this feature. Now that the script is ready, you can find all the contest's country wise standings here.

EDIT: I forgot to mention that those who have not filled in their countries here on codeforces, come under "Alien" in the country-wise standings. I request these people to fill in their correct nationality.

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

| Write comment?
»
11 years ago, # |
Rev. 2   Vote: I like it +4 Vote: I do not like it

firstly, ur link is broken. try adding http:// at the beginning, i think it should get fixed.
EDIT: link now fixed.

also, i have one suggestion. right now, all users are shown in this color. i think the "scoreboard" will look much more realistic if u can make ur script show users based on the color of their rating. :)

  • »
    »
    11 years ago, # ^ |
    Rev. 3   Vote: I like it +6 Vote: I do not like it

    Thanks for the good suggestion. I should have also thought about it. Anyways, I will implement it. In fact this is the reason I made it live in a free web service, to collect some feedback. After it is fully prepared I will move into a faster one which allows to cron python scripts.

    EDIT : Done. You can see the changes in Testing Round #10. It will be reflected in each of the contest starting from today's.

»
11 years ago, # |
  Vote: I like it +16 Vote: I do not like it

Very nice feature. Thank you.

»
11 years ago, # |
Rev. 2   Vote: I like it +16 Vote: I do not like it

Great work! Especially this ad banner at beginning — looks like 000webhost.com :)

Anyway it is really cool, thanks!

By the way instead of scrapping (if you meant this) you now can use codeforces API, as I know. Probably it would be more convenient...

UPD: Have we overall rating "country-wise" anywhere? I.e. not tied to specific contest but to current rating? Or CF have such feature already?

  • »
    »
    11 years ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    Thank You. I have'nt looked at the recently added API menu, will look at it. And yes, you can look at the overall ratings country wise. But that is overall. This is contest-specific.

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

    I am sure you wont see the advertisement again. I have invested into it. :D

»
11 years ago, # |
Rev. 2   Vote: I like it +9 Vote: I do not like it

I think it's good idea not reset values for contest&country after "Filter" has been pressed.

So you can easily check some contests with same country, for example.

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

25 lines per page is too few. Please add "Show All" option.

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

    I personally feel showing too much of data in one page is very untidy and of no use. If you are looking for a particular user, you can always use the search field.

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

It doesn't show coders with zero score.

  • »
    »
    11 years ago, # ^ |
    Rev. 4   Vote: I like it 0 Vote: I do not like it

    Strange. It does for me. Example of 252 Div 2 Country India. (Screenshot)

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

      Codeforces Round #248 (Div. 1) ... Country Egypt

      It shows only three scoring participants ... But there are other participants (real not virtual) who had zero score.

      Codeforces standings ... Your standings

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

        I dont know how this has happened. I will investigate into it and look. Maybe some internet connection failure on myside while scrapping. I will look and rectify it

»
11 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Very neat. Thank you.

I see that for only Div 2 contests, unofficial contestants are ignored. You can add them too upon selection may be.

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

    Welcome Anudeep. I have ignored virtual participants throughout intentionally.

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

      i think anudeep2011 meant out of contest participants (Div-1 users competing unofficially in a Div-2 only contest), not virtual participants.

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

      I mean out of contest participants.

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

        sorry. I misunderstood. I will make the changes and you can see them from the next contests. Thank you for the idea.

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

Hi, thanks a lot! Really helpful.

Maybe you could add a feature of viewing the solution upon double-clicking like Felix-Halim-TC-tools for ex. :)

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

    The feature is implemented. You can see it in around the last 40 contests. Thanks for idea. :)

»
11 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Great Work!! Thank You.

»
11 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Awesome !! Thanks man !!

»
11 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Awesome!! very neat and simple :)

»
11 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Awesome :) :) :) :) Really Nice work :)

»
11 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Such a nice work! I, and probably many people, have wanted a tool like this. Many thanks!

»
10 years ago, # |
  Vote: I like it +11 Vote: I do not like it

The two contests 254 Div1 and Div2 have been added. Sorry for the delay.

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

It does not show users who participated out of competition (Div-1 users in div-2 only rounds)

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

    Yes. Currently it does'nt. I am working on it. There are some issues. Please give me some time. Thanks.

»
10 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Thank you!

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

If possible,please try to implement the "View Solution" feature like how Codeforces does.I mean viewing the solution without having to reload the page.

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

    You can view all the AC solutions. There is a hyperlink provided to the scores which will redirect you to the codeforces site. I do not find it meaningful to store so much of data (of all the codes) in my database.

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

      OK.But can't you temporarily retrieve the solution from the codeforces site when the user double clicks on the scores(without storing in the DB) and then show it in the same page to the user,instead of going to another page?It would be better if we could view all the solutions in a single page like in Codeforces.

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

        Ok, I will try it. Thanks. But this comes low in my priority. Currently I am working on including unofficial in Div 2, a couple of bug fixes and adding some security to the page. These are higher priority tasks and more significant to me. Thanks anyways :)

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

Thank You for the tool !

I think it will be helpful if penalties are also taken into consideration for a user's ranking.

»
10 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Excellent feature.....thanks....:D

»
10 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Both Official and Unofficial standings together.Awesome :) :)

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

    Yes, you can now see the position in your country, in unofficial, official or combined rankings, as in this

»
10 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Wow this is really awesome! I highly appreciate your time and effort in creating this for the codeforces community!

»
10 years ago, # |
  Vote: I like it +8 Vote: I do not like it

I cannot find the result for 'Korea, Republic of'. Codeforces use that name, but the page says it cannot find the country.

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

    Give me 5 minutes. I will fix that. This bug creeped in this new version. Sorry for that

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

    Fixed it. Thanks for reporting it.

»
10 years ago, # |
  Vote: I like it +3 Vote: I do not like it

I am using russian language for this site, when I click to user http://www.phantom11.in/codeforces/index.php, the language automatically switches to english . can you fix this?

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

    Good issue!!! Especially if you are clicking too much from this site, like looking at submissions. (y)

    I have fixed this using cookies. You will have a dialog box asking for language preference, and the setting remains for 1 year :) , unless you delete cookies. Better ideas are invited.

»
10 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Great feature . I really appreciate your effort and this great feature . Thanks.

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

The site has been updated. Now u can also see a stat page for each contest. This now shows the top performing countries by taking the average of the score. I will add more stats soon similar to topcoder's stats page. It may take some time though.

»
10 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Of late I was not able to update the site. I got some messages to update it which is very nice, knowing that people are following it. I am sorry I was not able to update recently, that is because I moved to a new country and had some higher priorities and also internet was not available always. Now the site is up to date :)

»
10 years ago, # |
  Vote: I like it +20 Vote: I do not like it

Why the website is down now ??

I really liked it :(