Aus YaCyWiki
Wechseln zu: Navigation, Suche


Seedlist Export

This is a description of the api at http://localhost:8090/yacy/seedlist.html AND (it's the same) the format of the YaCy bootstraping-seedlist. The seedlist has two representations: a binary format which is used as bootstraping basis and a textual format in json(p) representation.

Operations performed when the servlet is called

The peer collects information about remote peers and represents it in either binary or textual format.

Properties in the http header

The caller must obey the http header rules.

Properties in the http post-arguments

Calls to the servlet can be made using a GET or POST operation. The properties are:

  • node=anything - if given then only node-type peers are selected
  • me=anything - if given then the output includes the called peer seed
  • my=anything - if given then the output contains only the called peer seed
  • id=peerhash - if given then the output contains only the peer with peer-hash peerhash
  • name=peername - if given then the output contains only the peer with peer-name peername
  • address=anything - if given then the output contains only the IP:port information
  • callback=<function-name> this is the name of the jsonp function. If the servlet is called with the 'json' extension and the callback property is present, the result is jsonp, not json.


The result may be returned in two different formats. The format is selected by the file name extension of the servlet, either 'html' for the binary format or 'json' for the clear-text format.

Binary Seedlist

The seedlist servlet generates a 'seedlist' file that is used for the bootstraping process of the YaCy p2p network. This file is a list of peer seeds in a SimpleCoding representation of a Seed DNA property map string. Formal:

seedstring  = '{', nucleotides, '}'
nucleotides = nucleotide, (',', nucleotide)*
nucleotide  = seed-attibute-key, '=', seed-attibute-value

Where seed-attibute-key and the corresponding seed-attibute-value is explained in Seed. Then we can defined the seedlist as list of encoded seedstrings:

seedlist    = ( seedencoding, CRLF )*

Where the seedencoding is a SimpleCoding of seedstring.

Clear-Text Seedlist

If you call the seedlist with http://localhost:8090/yacy/seedlist.html you will not get a html page but a page with encoded seedstrings as described above. There is an alternative representation of the seed list using the same api with json encoding. The page http://localhost:8090/yacy/seedlist.json shows the seed DNA with all the nucleotides in clear text. The same api is available for a json-p encoding using the following schema: http://localhost:8090/yacy/seedlist.json?callback=seedlistobject A clear-text seedlist looks like

       "Flags":"!   ",

This example shows only a single seed entry, the actual seedlist may contain hundreds of entries. If you call the xml-variant of the servlet, the output looks like:

<?xml version="1.0"?>
   <Flags>%   </Flags>
Meine Werkzeuge