21 lines
528 B
Markdown
21 lines
528 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 localhost:5000/metacrawl?q=yolo
|
|
{"metadescription":"An overused acronym for \"You only live once.\" There is an exception for those who believe in reincarnation or are cats.","metatitle":"Urban Dictionary: YOLO"}
|
|
```
|