Opened 5 years ago

Closed 5 years ago

#16601 closed enhancement (worksforme)

Create JSON wiht tpo's mirrors

Reported by: ilv Owned by: ilv
Priority: Medium Milestone:
Component: Webpages/Website Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


The idea is to have something similar to the RecommendedTBBVersions but with all the information listed in the website and stored in the CSV file. The way I see it, there are two options:

1) Modify the file, so it generates both tor-mirrors.csv and the JSON file.

2) Create a new (simpler) script in Python that opens the tor-mirrors.csv file and generates the JSON file.

I'd say option 2), but that involves a new script that should be periodically executed.

We should also have an URL for this new file; I propose tpo/getinvolved/mirrors

Ideally, this option would be helpful to gettor (since it could easily get a list of mirrors to send) and any other app out there that needs an easy way to process a list of tpo's mirrors (e.g. duckduckgo instant answer).


Child Tickets

Change History (5)

comment:1 Changed 5 years ago by ilv

Owner: changed from Sebastian to ilv
Status: newassigned

comment:2 Changed 5 years ago by ilv

FYI: I talked to Sebastian about this and he was OK with it. I offered to do it, so he told me I should assign the ticket to myself.

comment:3 Changed 5 years ago by ilv

Status: assignedneeds_review

I decided to create a separate script (in Python). The branch with the script is here ( One thing I'm not sure is where the json should be created. I propose tpo/mirrors (the url I mentioned in the ticket is the one that shows the mirrors in html, so it won't work).

comment:4 Changed 5 years ago by ilv

A sample of the file generated can be found here.

comment:5 Changed 5 years ago by ilv

Resolution: worksforme
Severity: Normal
Status: needs_reviewclosed

This has been implemented in the gettor restful api.

Note: See TracTickets for help on using tickets.