Go to file
dependabot[bot] 9db54b65c6
chore(deps): bump the all group with 4 updates
Bumps the all group with 4 updates: [github.com/PuerkitoBio/goquery](https://github.com/PuerkitoBio/goquery), [github.com/goodsign/monday](https://github.com/goodsign/monday), [github.com/sethvargo/go-envconfig](https://github.com/sethvargo/go-envconfig) and [github.com/stretchr/testify](https://github.com/stretchr/testify).


Updates `github.com/PuerkitoBio/goquery` from 1.8.1 to 1.9.1
- [Release notes](https://github.com/PuerkitoBio/goquery/releases)
- [Commits](https://github.com/PuerkitoBio/goquery/compare/v1.8.1...v1.9.1)

Updates `github.com/goodsign/monday` from 1.0.1 to 1.0.2
- [Release notes](https://github.com/goodsign/monday/releases)
- [Commits](https://github.com/goodsign/monday/compare/v1.0.1...v1.0.2)

Updates `github.com/sethvargo/go-envconfig` from 0.9.0 to 1.0.1
- [Release notes](https://github.com/sethvargo/go-envconfig/releases)
- [Commits](https://github.com/sethvargo/go-envconfig/compare/v0.9.0...v1.0.1)

Updates `github.com/stretchr/testify` from 1.8.4 to 1.9.0
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/PuerkitoBio/goquery
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: github.com/goodsign/monday
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all
- dependency-name: github.com/sethvargo/go-envconfig
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01 23:13:25 +00:00
.github fix: use go.mod go version in release 2024-01-01 21:26:56 +01:00
cmd/bazaar feat: added server configuration using env vars (#7) 2022-08-09 18:27:37 +02:00
helm release: version bump 0.3.0 2022-08-11 21:28:22 +02:00
internal feat: added server configuration using env vars (#7) 2022-08-09 18:27:37 +02:00
pkg feat: added server configuration using env vars (#7) 2022-08-09 18:27:37 +02:00
scripts deps: update (#27) 2024-01-01 20:42:03 +01:00
.gitignore ci: docker buildx (#8) 2022-08-10 16:39:32 +02:00
.goreleaser.yml ci: updated goreleaser 2024-01-01 21:48:13 +01:00
Containerfile deps: update (#27) 2024-01-01 20:42:03 +01:00
LICENSE Initial commit 2021-12-08 21:30:25 +01:00
Makefile buildx should to build files 2024-01-01 21:53:07 +01:00
README.md feat: added server configuration using env vars (#7) 2022-08-09 18:27:37 +02:00
go.mod chore(deps): bump the all group with 4 updates 2024-04-01 23:13:25 +00:00
go.sum chore(deps): bump the all group with 4 updates 2024-04-01 23:13:25 +00:00

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.