justinas / crawler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crawler

Run

Tested with Rust 1.45.2. Run with:

$ RUST_LOG=crawler=debug,actix=debug cargo run

Test with:

$ curl -H 'Content-Type: application/json' --data '{"domain": "http://example.com"}' \
    http://127.0.0.1:8080/crawl
$ curl http://127.0.0.1:8080/domains
["example.com"]
$ curl http://127.0.0.1:8080/domains/example.com
{"count":1,"urls":["https://www.iana.org/domains/example"]}

Docker image

Build with:

$ docker build .

About


Languages

Language:Rust 88.2%Language:Dockerfile 9.7%Language:Nix 2.2%