Add scheduler, rate limiting and headless mode.

Hard-coded 60s URL and 10s host floors with jitter and per-host
backoff, shared between dibs processes through a locked state file.
The scheduler shuffles due URLs each round and runs one worker per
host; 'dibs --headless' watches and logs JSON.
This commit is contained in:
Overlord committed 2026-10-14 09:04:15 +02:00
1 parent bb010356a0
commit 2175c0e5aa
30 files changed
+1434 -126

No files matched your search

+3 -4
View File
@@ -1,7 +1,6 @@
-- Built-in plugin for Amazon product pages (de, co.uk, fr, it, es, nl, com).
--
-- It uses only the public plugin API, so it doubles as the reference for
-- writing your own: see "Writing a plugin" in README.md.
-- It uses only the public plugin API, so it doubles as the reference
-- implementation of a plugin.
local tlds = {
["de"] = "EUR",
@@ -26,7 +25,7 @@ local amazon_merchants = {
}
-- Any of these buttons means a new item can go into the cart. The preorder
-- selectors are a best guess until we have a real preorder page.
-- selectors are unverified: no real preorder page has been checked yet.
-- "#add-to-cart-button-ubb" is deliberately missing: it belongs to the used
-- buybox, which Amazon shows when only used copies are left.
local buy_buttons = table.concat({