Go to file
Felipe Martin Garcia e69ecef6c8
ci: general improvements (#6)
* Renamed binary from server to bazaar

* Updated to go1.19

* Added several ignores

* Added makefile and helper scripts

* Added github workflows

* typo: filename

* using workflow inputs/outputs

* added containerfile

* cleanup containerfile

* enable cgo in tests only
2022-08-09 17:05:06 +02:00
.github/workflows ci: general improvements (#6) 2022-08-09 17:05:06 +02:00
cmd/bazaar ci: general improvements (#6) 2022-08-09 17:05:06 +02:00
internal test: steam 2022-08-07 12:15:32 +02:00
pkg fix(steam): price text and name extraction (#5) 2022-08-07 12:39:08 +02:00
scripts ci: general improvements (#6) 2022-08-09 17:05:06 +02:00
.gitignore ci: general improvements (#6) 2022-08-09 17:05:06 +02:00
.goreleaser.yml ci: general improvements (#6) 2022-08-09 17:05:06 +02:00
Containerfile ci: general improvements (#6) 2022-08-09 17:05:06 +02:00
LICENSE Initial commit 2021-12-08 21:30:25 +01:00
Makefile ci: general improvements (#6) 2022-08-09 17:05:06 +02:00
README.md doc: updated readme 2022-08-06 10:39:14 +02:00
go.mod ci: general improvements (#6) 2022-08-09 17:05:06 +02:00
go.sum ci: general improvements (#6) 2022-08-09 17:05:06 +02:00

README.md

bazaar

A service/library to extract product information from URLs.

Data model

Currently, this information is extracted from the site (if possbile):

{
    "image_url": "<url>", // (string) URL to an image file
    "in_stock": false, // (bool) If the item is currently available for purchase
    "name": "<name>", // (string) The name of the product as it appears on the site
    "price": 14.21, // (optional, float) The price of the product [parsed by the library]
    "price_text": "14,21 €", // (optional, string) The price of the product as it appears on the site (with currency)
    "release_date": "2021-03-22T00:00:00Z", // (optional, string RFC3339) the release date of the item
    "url": "<url>" // (string) The URL of the item
}

Supported sites

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

Running

go run cmd/server/main.go