Skip to content
Browse files

s/_/ / in page titles

  • Loading branch information...
1 parent 7b2748f commit d6233a21ce05be1fd9867fda7103f36db570bd6c @edsu committed Feb 14, 2012
Showing with 781 additions and 780 deletions.
  1. +779 −779 2012/02/14/17.json
  2. +2 −1 jsonify.py
View
1,558 2012/02/14/17.json
779 additions, 779 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
3 jsonify.py
@@ -9,7 +9,8 @@
for line in fileinput.input():
line = line.strip()
cols = line.split(" ")
- stats.append({"page": urllib.unquote(cols[1]), "count": cols[0]})
+ page = urllib.unquote(cols[1]).replace('_', ' ')
+ stats.append({"page": page, "count": cols[0]})
print json.dumps(stats, indent=2)

0 comments on commit d6233a2

Please sign in to comment.
Something went wrong with that request. Please try again.