Indexer Web Service

Starting from version 0.3.0 the openwebspider’s server integrates the support of a web service that allows to index a single web page.

Request:

http://<openwebspider's server host:port>/index?u=<URL in Base64>

Example:

http://127.0.0.1:9999/index?u=aHR0cDovd3dy5vcGVud2Vic3BpZGVyLm9yZy8=

Response (OK):

{
    "status": "ok",
    "error": null,
    "host": "www.openwebspider.org",
    "path": "/",
    "links": [
        {"host": "www.openwebspider.org", "path": "/"}, 
        {"host": "www.openwebspider.org","path": "/category/news/"},
        {"host": "www.openwebspider.org", "path": "/documentation/"}, 
        {"host": "www.openwebspider.org","path": "/download/"}
    ]
}

Response (Error):

{
    "status":"ko",
    "error":"Invalid URL"
}

See also: