Rosetta Code/Rank languages by popularity: Difference between revisions
Content added Content deleted
(added python fail-proof solution) |
(removed semicolon, ignore this. (This happens when you learn C++.)) |
||
Line 463: | Line 463: | ||
langs = json.load(urllib.urlopen("http://www.rosettacode.org/w/api.php?\ |
langs = json.load(urllib.urlopen("http://www.rosettacode.org/w/api.php?\ |
||
action=query&list=categorymembers&cmtitle=Category:Programming_Languages\ |
action=query&list=categorymembers&cmtitle=Category:Programming_Languages\ |
||
&cmlimit=500&format=json")) |
&cmlimit=500&format=json")) |
||
titles = [i['title'] for i in langs['query']['categorymembers']] |
titles = [i['title'] for i in langs['query']['categorymembers']] |