Skip to content

Add X99 DDR4 RAM deal monitor scripts - #47

Closed
krotname wants to merge 2 commits into
mainfrom
claude/x99-memory-price-comparison-fsfi26
Closed

Add X99 DDR4 RAM deal monitor scripts#47
krotname wants to merge 2 commits into
mainfrom
claude/x99-memory-price-comparison-fsfi26

Conversation

@krotname

Copy link
Copy Markdown
Owner

What

New standalone tooling under scripts/x99-ram-monitor/: a price monitor that watches Wildberries, Ozon, Avito and Yandex Market for DDR4 ECC REG (server) memory suitable for X99 boards and notifies about listings priced below the market.

  • Deal detection: a listing is a deal when its ₽/GB is below an absolute threshold from config.yaml (per-marketplace overrides, e.g. stricter for used items on Avito) or 25%+ below the median of the current search results.
  • Scrapers: Wildberries via its open search JSON API (plain requests); Ozon, Avito and Yandex Market via Playwright with a persistent browser profile to survive antibot checks. Avito uses newest-first sorting, which is what "watch for new offers" needs.
  • Dedupe: already-notified listings are remembered in state.json; a listing is re-sent only if its price drops by another 10%.
  • Notifications: console + Telegram (TG_BOT_TOKEN/TG_CHAT_ID env vars).
  • Ops: --once/--loop modes with jitter, a crontab.example, and a network-free --selftest covering title parsing (incl. Cyrillic «4х16Gb» kits), filtering, deal selection and dedupe.

Why

Requested in this session: compare DDR4 ECC REG prices for an X99 build across RU marketplaces and keep monitoring for below-market offers. config.yaml ships with Aug 2026 price baselines gathered during the research.

Testing

  • python3 monitor.py --selftest — all checks pass (capacity/price parsing, filters, deal selection, state dedupe).
  • python3 -m py_compile over all modules; config.yaml validated.
  • A live dry-run degrades gracefully to zero results when marketplace domains are unreachable (marketplaces are egress-blocked in the dev sandbox, so scrapers were not exercised against live sites — noted in the README).

No plugin code touched; Gradle build is unaffected.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BpXkEAUhyCAn2vmonpMYMN


Generated by Claude Code

Watch Wildberries, Ozon, Avito and Yandex Market for DDR4 ECC REG
listings priced below the market (per-GB threshold or 25% under the
current median), dedupe against a state file and push new deals to
Telegram. Wildberries uses its open search JSON API; the antibot-heavy
marketplaces go through Playwright with a persistent profile.

Includes config with Aug 2026 price baselines, a network-free selftest
for the parsing/dedupe logic, and a crontab example.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BpXkEAUhyCAn2vmonpMYMN
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 92f7ca2629

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/x99-ram-monitor/monitor.py Outdated
Comment thread scripts/x99-ram-monitor/scrapers/yandex_market.py Outdated
@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Address Codex review on #47: state.json was written before the Telegram
send, so a failed delivery permanently swallowed the notification; now
listings are marked as seen only after a successful send (or when
Telegram is disabled). The Yandex Market scraper used to raise three
seconds after detecting SmartCaptcha even in headful mode, closing the
window before a human could solve it — it now waits up to three minutes
for the captcha to be solved when headless is off.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BpXkEAUhyCAn2vmonpMYMN
@krotname krotname closed this Aug 26, 2026
@krotname
krotname deleted the claude/x99-memory-price-comparison-fsfi26 branch August 26, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants