[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #4809 [Metrics Website]: use less political country names on metrics pages
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs