mirror of https://github.com/fmartingr/bazaar.git
9db54b65c6
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> |
||
---|---|---|
.github | ||
cmd/bazaar | ||
helm | ||
internal | ||
pkg | ||
scripts | ||
.gitignore | ||
.goreleaser.yml | ||
Containerfile | ||
LICENSE | ||
Makefile | ||
README.md | ||
go.mod | ||
go.sum |
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.