21 lines
630 B
Markdown

# Google search metacrawl
Proof-of-concept.
Server exposes a single endpoint `/metacrawl` which takes a search term `q`
as argument and returns a JSON response.
Build and run docker:
```bash
$ docker build -t metacrawl:0.1
$ docker run --rm -it -p 5000:5000 metacrawl:0.1
```
Query server:
```bash
$ curl -G localhost:5000/metacrawl --data-urlencode "q=kjøpe bilforsikring"
{"metadescription":"If bilforsikring tilbyr et enkelt bonussystem, ny bil ved totalskade, og har flest forn\u00f8yde kunder ... Skal du kj\u00f8pe eller bytte forsikring er det viktig du f\u00e5r riktig bonus.","metatitle":"Bilforsikring | If"}
```