mirror of https://github.com/fmartingr/bazaar.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 months ago | |
---|---|---|
.github/workflows | 3 months ago | |
cmd/bazaar | 10 months ago | |
helm | 10 months ago | |
internal | 10 months ago | |
pkg | 10 months ago | |
scripts | 10 months ago | |
.gitignore | 10 months ago | |
.goreleaser.yml | 3 months ago | |
Containerfile | 10 months ago | |
LICENSE | 2 years ago | |
Makefile | 3 months ago | |
README.md | 10 months ago | |
go.mod | 3 months ago | |
go.sum | 3 months ago |
README.md
bazaar
A service/library to extract product information from URLs.
Configuration
Variable name | Default | Description |
---|---|---|
HTTP_ENABLED |
true |
Enable/Disable the HTTP server |
HTTP_PORT |
8080 |
Port to serve the HTTP in |
Servers
HTTP
-
POST /item
Parameters:
- url: The URL to extract information from
Responses:
200
: Information extracted400
: Shop not supported, missing parameters500
: Internal error, check logs
-
GET /liveness
Responses:
200
: Server running
Data model
Currently, this information is extracted from the site (if possbile):
{
"description": "...",
"image_url": "https://...",
"in_stock": false,
"name": "...",
"price": 0.0,
"price_text": "0,0 €",
"release_date": "2019-03-08T00:00:00Z",
"url": "https://..."
}
Supported sites
Support is handled in a best effort basis. Some sites do not provided all exposed fields.