I'm looking to start a series of problems related to web scraping. In this problem, you are given a date in 'dd mmm yyyy' format and must return the total number of active Cody players as of that date. Active is defined as having a nonzero score.
Examples
numcodyplayers('1 Jan 2000') returns 0
because Cody did not exist (at least not publicly) at that time
numcodyplayers('26 Jan 2012') returns 260
because in the first week of recorded activity, 260 unique players participated.
Notes
Hi Matt Eicholtz, it's a great problem. but the testsuite results look strange for me: According to this site:http://www.mathworks.com/matlabcentral/cody/badges/3?page=120, the last solver badge on 26 Jan 2012(for Solution 7330) is the 266th of all.Did I miss something? Thank you.
LY Cao, hmm...that's strange. I am wondering if the Cody pages are not all up-to-date. I was using the Recent Activity pages. Let me look into it; I may just add some tolerance to the test suite results.
In the meantime, perhaps someone from MathWorks can comment on the discrepancies between various Cody sites. For instance, the link LY Cao posted shows 15128 players earned the Solver badge (as of now), but this link (http://www.mathworks.com/matlabcentral/cody/activities?sort=&term=type%3ABadge) only accounts for 7962 total badges earned.
yes,it's very strange,at the bottom of that page it shows "5951 – 6000 of 6,245"
Somewhere between 2014-2015 cody activity pages lost about 150k entries i believe it happened when cody suffered from spamming attack. http://www.mathworks.com/matlabcentral/trendy/plots/675 According to this plot, it was about a half of entries cody had that time. (Perhaps "too strong" antispam filters?) Lot of other things were affected too. You cannot see some older solutions (sometimes direct link works, if you know the solution number). Here is another good example: http://www.mathworks.com/matlabcentral/cody/badges/12 http://www.mathworks.com/matlabcentral/cody/players?term=badge%3A%22Celebrity%22
How many players awarded this badge? 5? 10? 11?
By now probably the most accurate data are stored in José trend http://www.mathworks.com/matlabcentral/trendy/trends/2048 which is recording since July 2013
Back to basics 22 - Rotate a matrix
682 Solvers
Convert a vector into a number
442 Solvers
208 Solvers
Find out value of sine given by degree.
173 Solvers
116 Solvers