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

Автор phantom11, 10 лет назад, По-английски

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.

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

»
10 лет назад, # |
Rev. 2   Проголосовать: нравится +4 Проголосовать: не нравится

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

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

    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.

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

Very nice feature. Thank you.

»
10 лет назад, # |
Rev. 2   Проголосовать: нравится +16 Проголосовать: не нравится

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?

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

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.

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

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

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

It doesn't show coders with zero score.

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

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.

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

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

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

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

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

Great Work!! Thank You.

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

Awesome !! Thanks man !!

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

Awesome!! very neat and simple :)

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

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

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

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

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

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

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

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

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

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

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

Thank you!

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

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 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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 лет назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      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 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        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 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Thank You for the tool !

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

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

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

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

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

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

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

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

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

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

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

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

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 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

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

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

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

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

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

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

Why the website is down now ??

I really liked it :(