5 kyu
Scraping: Codewars Top 500 Users
89 of 87910XL
Description:
You should get and parse the html of the codewars leaderboard page.
You can use Nokogiri
(Ruby) or BeautifulSoup
(Python) or CheerioJS
(Javascript).
For Javascript: Return a Promise resolved with your 'Leaderboard' Object!
Note: Use the Overall leaderboard table.
Return a 'Leaderboard' object with a position property.
Leaderboard#position should contain 500 'User' objects.
Leaderboard#position[i] should return the ith ranked User(1 based index).
Each User should have the following properties
User#name # => the user's username, not their real name
User#clan # => the user's clan, empty string if empty clan field
User#honor # => the user's honor points as an integer
Ex:
an_alien = leaderboard.position[3] # => #<User:0x3124da0 @name="myjinxin2015", @clan="China Changyuan", @honor=21446>
an_alien.name # => "myjinxin2015"
an_alien.clan # => "China Changyuan"
an_alien.honor # => 21446
Fundamentals
Similar Kata:
Stats:
Created | Nov 4, 2016 |
Published | Nov 4, 2016 |
Warriors Trained | 4529 |
Total Skips | 1124 |
Total Code Submissions | 12856 |
Total Times Completed | 879 |
Ruby Completions | 89 |
Python Completions | 521 |
JavaScript Completions | 281 |
Total Stars | 275 |
% of votes with a positive feedback rating | 86% of 262 |
Total "Very Satisfied" Votes | 206 |
Total "Somewhat Satisfied" Votes | 38 |
Total "Not Satisfied" Votes | 18 |
Total Rank Assessments | 10 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 6 kyu |