mirror of
https://github.com/torproject/collector.git
synced 2025-02-21 10:10:48 +00:00
parent
3121a2692c
commit
0397899166
@ -195,6 +195,7 @@ public class CreateIndexJson extends CollecTorMain {
|
||||
}
|
||||
|
||||
private void writeIndex(IndexNode indexNode) throws IOException {
|
||||
indexJsonFile.getParentFile().mkdirs();
|
||||
Gson gson = new GsonBuilder().create();
|
||||
String indexNodeString = gson.toJson(indexNode);
|
||||
Writer[] writers = new Writer[] {
|
||||
|
@ -53,7 +53,7 @@ UpdateindexOffsetMinutes = 0
|
||||
InstanceBaseUrl = https://collector.torproject.org
|
||||
# The target location for index.json and its compressed
|
||||
# versions index.json.gz, index.json.bz2, and index.json.xz
|
||||
IndexPath = .
|
||||
IndexPath = index
|
||||
# The top-level directory for archived descriptors.
|
||||
ArchivePath = archive
|
||||
# The top-level directory for the recent descriptors that were
|
||||
|
@ -836,7 +836,7 @@ wget --recursive \ # turn on recursive retrieving
|
||||
<h2 id="index-json" class="hover">Custom downloaders using provided <tt>index.json</tt>
|
||||
<a href="#index-json" class="hover">#</a></h2>
|
||||
|
||||
<p>Another automated way to download descriptors is to develop a tool that uses the provided <a href="index.json"><tt>index.json</tt></a> file or one of its compressed versions <a href="index.json.gz"><tt>index.json.gz</tt></a>, <a href="index.json.bz2"><tt>index.json.bz2</tt></a>, or <a href="index.json.xz"><tt>index.json.xz</tt></a>.
|
||||
<p>Another automated way to download descriptors is to develop a tool that uses the provided <a href="index/index.json"><tt>index.json</tt></a> file or one of its compressed versions <a href="index/index.json.gz"><tt>index.json.gz</tt></a>, <a href="index/index.json.bz2"><tt>index.json.bz2</tt></a>, or <a href="index/index.json.xz"><tt>index.json.xz</tt></a>.
|
||||
These files contain a machine-readable representation of all descriptor files available on this site.
|
||||
Index files use the following custom JSON data format that might still be extended at a later time:</p>
|
||||
<ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user