[tor-bugs] #4809 [Metrics Website]: use less political country names on metrics pages

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Thu Jan 5 16:38:33 UTC 2012


#4809: use less political country names on metrics pages
-----------------------------+----------------------------------------------
 Reporter:  arma             |          Owner:  karsten
     Type:  defect           |         Status:  new    
 Priority:  normal           |      Milestone:         
Component:  Metrics Website  |        Version:         
 Keywords:                   |         Parent:         
   Points:                   |   Actualpoints:         
-----------------------------+----------------------------------------------

Comment(by hellais):

 I propose to get the official entry name of the country inside of
 wikipedia.

 For example:
 "Democratic People's Republic of Korea" page title is "North Korea".

 This is a bash one-liner to automate this:

 for i in `cat countries.txt`;do curl -kis
 "http://en.wikipedia.org/wiki/${i}" | grep -m1 "<title>" | cut -d '-' -f1
 | sed s/\<title\>//g;done

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4809#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list