Update: The result returned from the StackExchange is slightly outdated. So it might not display the latest reputation or other profile changes and thus slightly affecting the ranking.
Update: Because the large list was affecting the site performance, I have moved it to Github Gist.
This post uses the StackExchange Data Explorer to query the StackOverflow users and grab their data. The Python script to query and parse the data is attached below the ranking. So let’s wait no further and meet the top 500 people on SO from Bangladesh:
Script:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import requests import csv CSV_URL = "http://data.stackexchange.com/stackoverflow/csv/521550" response = requests.get(CSV_URL) data = csv.DictReader(response.content.splitlines()) for rank, row in enumerate(data): print "#{} - {} - {} - {}".format((rank+1),row['DisplayName'], row['Reputation'], row['WebsiteUrl']) """ print "<li><a target='_blank' href='http://stackoverflow.com/users/{}'>{}</a> ({}) </li>".format( row['User Link'], row['DisplayName'], row['Reputation'] ) """ |