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.
Felipe M bbc452e1f8
release: version bump 0.3.0
4 months ago
.github/workflows ci: fixed buildx support, containerfile and workflows 4 months ago
cmd/bazaar feat: added server configuration using env vars (#7) 4 months ago
helm release: version bump 0.3.0 4 months ago
internal feat: added server configuration using env vars (#7) 4 months ago
pkg feat: added server configuration using env vars (#7) 4 months ago
scripts ci: fixed buildx support, containerfile and workflows 4 months ago
.gitignore ci: docker buildx (#8) 4 months ago
.goreleaser.yml ci: docker buildx (#8) 4 months ago
Containerfile ci: fixed buildx support, containerfile and workflows 4 months ago
LICENSE Initial commit 1 year ago
Makefile ci: docker buildx (#8) 4 months ago
README.md feat: added server configuration using env vars (#7) 4 months ago
go.mod feat: added server configuration using env vars (#7) 4 months ago
go.sum feat: added server configuration using env vars (#7) 4 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 extracted
    • 400: Shop not supported, missing parameters
    • 500: 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://..."
}

pkg/models/product.go

Supported sites

Support is handled in a best effort basis. Some sites do not provided all exposed fields.