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

Stats:

CreatedNov 4, 2016
PublishedNov 4, 2016
Warriors Trained4529
Total Skips1124
Total Code Submissions12856
Total Times Completed879
Ruby Completions89
Python Completions521
JavaScript Completions281
Total Stars275
% of votes with a positive feedback rating86% of 262
Total "Very Satisfied" Votes206
Total "Somewhat Satisfied" Votes38
Total "Not Satisfied" Votes18
Total Rank Assessments10
Average Assessed Rank
5 kyu
Highest Assessed Rank
4 kyu
Lowest Assessed Rank
6 kyu
Ad
Contributors
  • 10XL Avatar
  • tachyonlabs Avatar
  • FArekkusu Avatar
Ad