[tor-bugs] #10680 [Analysis]: Obtain attributes of current public bridges

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jan 30 16:58:19 UTC 2014


#10680: Obtain attributes of current public bridges
--------------------------+------------------------------
     Reporter:  sysrqb    |      Owner:
         Type:  task      |     Status:  new
     Priority:  normal    |  Milestone:
    Component:  Analysis  |    Version:
   Resolution:            |   Keywords:  bridgedb-parsers
Actual Points:            |  Parent ID:
       Points:            |
--------------------------+------------------------------

Comment (by sysrqb):

 Great! I'm attaching two files, one contains the number of bridges based
 on a single NS (the last one available when I synced last night), the
 second file contains the bridge counts from every NS from the last three
 days. I'm not sure what will be easiest for you. I can also add an option
 to only parse the networkstatuses that were published on a certain day.
 Right now, with the options I implemented, the script can be run over the
 entire three-day set and you can parse the resulting csv and choose the
 days you want, or you can run the script every hour and create a csv from
 the "most-recently published" networkstatus. I'm completely open to adding
 functionality if it will make the process easier.

 Note, the lines in the csv are not sorted, I can order the output by date
 and also sort the platform and version lines, so they're not interleaved,
 if that will help.

 Current functionality:
 {{{
 usage: bridge_attributes.py [-h] [-d DESC] [-e EI] [-n NS] [-s NSFILE]
                             [-o OUTPUT] [-O OUTPUT_NAME] [-a]

 Obtain bridge metrics

 optional arguments:
   -h, --help            show this help message and exit
   -d DESC, --desc DESC  The directory that contains bridge descriptors
   -e EI, --ei EI        The directory that contains bridge extra-info
                         documents
   -n NS, --ns NS        The directory that contains bridge networkstatus
                         documents
   -s NSFILE, --nsfile NSFILE
                         The file path to a specific bridge networkstatus
                         document
   -o OUTPUT, --output OUTPUT
                         The directory where the output is saved (default:
 cwd)
   -O OUTPUT_NAME, --output-name OUTPUT_NAME
                         The filename to where the output is saved
                         (default: bridges.csv)
   -a, --parse-all       Parse all documents, not only the most recent
 }}}

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


More information about the tor-bugs mailing list