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

Close-button

Up and Coming Editors on Answers

952

data points

Description:

These are the top 10 sub-3000 Contributors in Answers

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

Time Recorded (time1756) Data (data1756)
05 May 2015 09:00:39 [756104 2835 1798167 2731 3559595 2354 2021205 2269 1078046 2208 869215 1947 631608 1822 695467 1768 2542023 1747 1455089 1584]
04 May 2015 15:53:29 [756104 2821 1798167 2731 3559595 2354 2021205 2269 1078046 2208 869215 1945 631608 1822 695467 1766 2542023 1747 1455089 1584]
01 May 2015 14:39:41 [756104 2821 1798167 2731 3559595 2354 2021205 2269 1078046 2208 869215 1909 631608 1822 695467 1758 2542023 1747 1455089 1584]
16 Apr 2015 09:00:38 [2950957 2974 1798167 2729 756104 2681 3559595 2316 2021205 2269 1078046 2208 869215 1865 631608 1818 2542023 1747 695467 1718]
15 Apr 2015 09:00:37 [2950957 2938 1798167 2729 756104 2673 3559595 2312 2021205 2269 1078046 2208 869215 1847 631608 1818 2542023 1747 695467 1706]
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