innmind/library

Holds crawled page data

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 1

Type:project

1.7.1 2020-10-25 17:42 UTC

This package is auto-updated.

Last update: 2024-03-29 03:32:37 UTC


README

Build Status codecov Type Coverage

Store indexed http resources in a graph database.

By defaut it stores very little information for a resource, however extra information can be stored for images and html pages. More importantly it stores the relations (referer, canonical, alt) between the resources

Installation

composer create-project innmind/library

Copy the file config/.env.dist to config/.env and adapt the variables to your environment (they can also be defined as env vars in the web server).

Then:

docker-compose up -d

Usage

The following call will give you links to the definitions of the available resources:

OPTIONS /*
Accept: application/json
Authorization: Bearer api_key_defined_in_env_var

For every link provided in the response you can emit an OPTIONS request to it that will provided the properties you're allowed to provide when creating/updating the resource and the ones provided when you query a resource.