Since you are new, let us show you how Trendy works.

Close-button

Up and Coming Editors on Answers

935

data points

Description:

These are the top 10 sub-3000 Contributors in Answers

Recently Collected Data (last 5 of 935) Show All Data

Time Recorded (time1756) Data (data1756)
02 Apr 2015 09:00:39 [2950957 2888 1798167 2728 756104 2589 3559595 2296 2021205 2269 1078046 2208 631608 1813 869215 1781 2542023 1747 695467 1696]
01 Apr 2015 09:00:37 [2950957 2888 1798167 2724 756104 2579 3559595 2296 2021205 2268 1078046 2208 631608 1813 869215 1775 2542023 1747 695467 1696]
31 Mar 2015 09:00:37 [2950957 2888 1798167 2724 756104 2577 3559595 2296 2021205 2268 1078046 2208 631608 1813 869215 1761 2542023 1747 695467 1686]
30 Mar 2015 09:00:39 [2950957 2860 1798167 2724 756104 2577 3559595 2288 2021205 2268 1078046 2208 631608 1813 869215 1757 2542023 1747 695467 1684]
29 Mar 2015 09:00:37 [2950957 2858 1798167 2724 756104 2577 3559595 2288 2021205 2268 1078046 2208 631608 1813 869215 1753 2542023 1747 695467 1680]
url = 'http://www.mathworks.com/matlabcentral/answers/contributors';
html = urlread(url);

%%
target = '<span class="highlighted">(\d+)</span>\s+reputation';
tkRep = regexp(html,target,'tokens');

%%
target = '<div class="contributor_profile">\s+<h2><a href="/matlabcentral/profile/authors/(\d+)';
tkID = regexp(html,target,'tokens');

%%
n = 50;
vals = zeros(2,n);
for i = 1:n
    profid = str2num(tkID{i}{1});
    rep = str2num(tkRep{i}{1});
    vals(1,i) = profid;
    vals(2,i) = rep;
end

% Get the 10 contributors with the best sub-3000 score
ix1 = cumsum(vals(2,:) < 3000);
ix2 = (ix1 > 0) & (ix1 < 11);
vals = vals(:,ix2);

% Get the top 10 contributors
vals = vals(:)';
updatetrend(vals)
Tags:

    Add Tags


    0 comments