phantom11's blog

By phantom11, 5 years ago, ,

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

 » 5 years ago, # | ← 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. :)
•  » » 5 years ago, # ^ | ← 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.
 » 5 years ago, # |   +16 Very nice feature. Thank you.
 » 5 years ago, # | ← 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?
•  » » 5 years ago, # ^ | ← Rev. 2 →   0 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.
•  » » 5 years ago, # ^ |   0 I am sure you wont see the advertisement again. I have invested into it. :D
 » 5 years ago, # | ← 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.
•  » » 5 years ago, # ^ |   0 Thanks, done.
 » 5 years ago, # |   +7 25 lines per page is too few. Please add "Show All" option.
•  » » 5 years ago, # ^ |   0 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.
•  » » » 5 years ago, # ^ |   0 Ok. So, please highlight active page index in the bottom.
•  » » » » 5 years ago, # ^ |   +6 Thanks. Done
 » 5 years ago, # |   0 It doesn't show coders with zero score.
•  » » 5 years ago, # ^ | ← Rev. 4 →   0 Strange. It does for me. Example of 252 Div 2 Country India. (Screenshot)
•  » » » 5 years ago, # ^ |   0 Codeforces Round #248 (Div. 1) ... Country EgyptIt shows only three scoring participants ... But there are other participants (real not virtual) who had zero score.
•  » » » » 5 years ago, # ^ |   0 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
 » 5 years ago, # |   +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.
•  » » 5 years ago, # ^ |   +3 Welcome Anudeep. I have ignored virtual participants throughout intentionally.
•  » » » 5 years ago, # ^ |   +6 i think anudeep2011 meant out of contest participants (Div-1 users competing unofficially in a Div-2 only contest), not virtual participants.
•  » » » 5 years ago, # ^ |   0 I mean out of contest participants.
•  » » » » 5 years ago, # ^ |   0 sorry. I misunderstood. I will make the changes and you can see them from the next contests. Thank you for the idea.
•  » » » » » 5 years ago, # ^ |   +3 (Y) Thank you :)
 » 5 years ago, # |   +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. :)
•  » » 5 years ago, # ^ |   +1 The feature is implemented. You can see it in around the last 40 contests. Thanks for idea. :)
 » 5 years ago, # |   +3 Great Work!! Thank You.
 » 5 years ago, # |   +3 Awesome !! Thanks man !!
 » 5 years ago, # |   +3 Awesome!! very neat and simple :)
 » 5 years ago, # |   +3 Awesome :) :) :) :) Really Nice work :)
 » 5 years ago, # |   +3 Such a nice work! I, and probably many people, have wanted a tool like this. Many thanks!
 » 5 years ago, # |   +11 The two contests 254 Div1 and Div2 have been added. Sorry for the delay.
 » 5 years ago, # |   0 It does not show users who participated out of competition (Div-1 users in div-2 only rounds)
•  » » 5 years ago, # ^ |   +5 Yes. Currently it does'nt. I am working on it. There are some issues. Please give me some time. Thanks.
 » 5 years ago, # |   +3 Thank you!
 » 5 years ago, # |   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.
•  » » 5 years ago, # ^ |   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.
•  » » » 5 years ago, # ^ |   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.
•  » » » » 5 years ago, # ^ |   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 :)
 » 5 years ago, # |   0 Thank You for the tool !I think it will be helpful if penalties are also taken into consideration for a user's ranking.
 » 5 years ago, # |   +3 Excellent feature.....thanks....:D
 » 5 years ago, # |   +3 Both Official and Unofficial standings together.Awesome :) :)
•  » » 5 years ago, # ^ |   0 Yes, you can now see the position in your country, in unofficial, official or combined rankings, as in this
 » 5 years ago, # |   +3 Wow this is really awesome! I highly appreciate your time and effort in creating this for the codeforces community!
 » 5 years ago, # |   +8 I cannot find the result for 'Korea, Republic of'. Codeforces use that name, but the page says it cannot find the country.
•  » » 5 years ago, # ^ |   +11 Give me 5 minutes. I will fix that. This bug creeped in this new version. Sorry for that
•  » » 5 years ago, # ^ |   +13 Fixed it. Thanks for reporting it.
 » 5 years ago, # |   +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?
•  » » 5 years ago, # ^ |   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.
 » 5 years ago, # |   +3 Great feature . I really appreciate your effort and this great feature . Thanks.
 » 5 years ago, # |   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.
 » 5 years ago, # |   0 How do calculate Performance Meter ? Codeforces country rating system is nice . The country with many users should be higher than less users
 » 5 years ago, # |   +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 :)
 » 5 years ago, # |   +20 Why the website is down now ?? I really liked it :(