Add Lua plugin host, built-in amazon plugin and dibs check.
Sandboxed gopher-lua with time, memory and call-stack limits from [sandbox], a goquery-backed doc API, price parsing, and the 'check', 'plugin test' and 'fixtures' commands. Sellers are first_party, fulfilled (shipped by the shop) or third_party, and items accept fulfilled by default; used-only offers are not available. Plugin tests run on real pages that 'dibs fixtures' fetches into an untracked directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f90ef18f90
commit
bb010356a0
28 files changed
+2096
-26
No files matched your search
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
# Real Amazon pages the amazon plugin is tested on. `dibs fixtures` fetches
|
||||
# them into pages/ (not tracked), together with the report dibs made for
|
||||
# each. Pages change: when a case stops showing what its note says, pick
|
||||
# another product.
|
||||
#
|
||||
# Still wanted: a page sold by Amazon itself, and a preorder.
|
||||
|
||||
[[case]]
|
||||
name = "out-of-stock-de"
|
||||
url = "https://www.amazon.de/dp/B0HMX2FSTF"
|
||||
note = "Metro 2039 CE (Xbox), currently unavailable, no offer at all"
|
||||
|
||||
[[case]]
|
||||
name = "out-of-stock-uk"
|
||||
url = "https://www.amazon.co.uk/dp/B0HM497GJJ"
|
||||
note = "Metro 2039 CE (PC), currently unavailable, prices in GBP"
|
||||
|
||||
[[case]]
|
||||
name = "fulfilled-de"
|
||||
url = "https://www.amazon.de/dp/B0DK51S84Z"
|
||||
note = "Silkland cable, sold by Silkland-DE, shipped by Amazon"
|
||||
|
||||
[[case]]
|
||||
name = "fulfilled-de-2"
|
||||
url = "https://www.amazon.de/dp/B076WS2WJ6"
|
||||
note = "UGREEN enclosure, sold by a marketplace seller, shipped by Amazon"
|
||||
|
||||
[[case]]
|
||||
name = "used-only-de"
|
||||
url = "https://www.amazon.de/dp/B0948LPGNG"
|
||||
note = "Metro Exodus Complete (PS5), only a used copy in the buybox: not available"
|
||||
|
||||
[[case]]
|
||||
name = "not-found-de"
|
||||
url = "https://www.amazon.de/dp/B0NOTREAL1"
|
||||
note = "no such product: Amazon's 404 dog page"
|
||||
Reference in new issue
Block a user