"Similar posts" service for e621.
|
||
---|---|---|
extension | ||
media | ||
src | ||
test | ||
.dockerignore | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
docker-compose.yml | ||
Dockerfile | ||
LICENSE | ||
README.md |
e6similar
"Similar posts" service for e621.
API
/similar/:id
Query Parameters
Name | Default | Description |
---|---|---|
limit |
5 |
Maximum number of posts to return, capped at 20. |
ignore_id |
Empty | Post ID(s) to never return. The provided post ID is always ignored. |
skip_tag |
Empty | Tags that won't be counted when determining similarity. |
Building
$ cargo build --release
$ target/release/e6similar --root <root directory> --posts <posts.csv seed, from https://e621.net/db_export/>
From then on, run without --posts
. e6similar will query e621 regularly to keep its index in sync.
Notes
JavaScript is the worst language in the world