Skip to content

feat: add AWSCertifications wiki vouchers source - #14

Merged
Devathmaj merged 1 commit into
mainfrom
source-addition
Aug 14, 2026
Merged

feat: add AWSCertifications wiki vouchers source#14
Devathmaj merged 1 commit into
mainfrom
source-addition

Conversation

@Devathmaj

@Devathmaj Devathmaj commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

Adds the r/AWSCertifications community wiki Vouchers & Discounts page as a new WEBSITE source so voucher, discount, coupon, and promo-code signals from that page are ingested, scored, and alerted on.

Page structure analysis (how it is parsed)

The page is a single MkDocs Material document (generated with mkdocs-material 9.7.7):

  • All content lives inside <article class="md-content__inner md-typeset">.
  • It has one <h1>\ page title and <h2>/

    \ section headings (Current Promotions, Active Discounts, Recurring Benefits, Past Promotions, Expired Discounts, ...).

  • There are no per-card / per-item wrappers, so the page cannot be split into discrete articles by the \WebsiteCollector.

Because of this, the source is configured to parse the whole page as one post per crawl, which preserves all promo codes, links, tables, and notes for the keyword matcher and AI analyzer:

Config key Value
\ ype\ \WEBSITE\ (routes to \WebsiteCollector)
\�rticle_selector\ \�rticle.md-content__inner\
\ itle_selector\ \h1\
\link_selector\ \self\ (falls back to the page URL)
\priority_tier\ \C\ (240 min poll)
\priority\ \2\
\�endor\ \AWS\

Vendor mapping

Adds a URL-pattern entry to \VENDOR_MAPPINGS\ so posts ingested from this source are tagged with the canonical \�ws\ vendor (mirrors how msfthub.com is mapped to \microsoft).

Verification

  • Live-collected the page with the configured selectors: returns 1 post (title "AWS Vouchers, Exam Discounts, Coupons & Promotions (2026)", ~6.8 KB of body content).
  • Existing test suite passes: 102 passed, 15 skipped (\ ests/test_bootstrap.py, \ ests/test_collectors.py, \ ests/test_pipeline.py).

  • uff check\ and \mypy\ are clean on the changed file.

Files changed

  • \�oucherbot/database/bootstrap.py\ — adds the \website:awscertifications_wiki_vouchers\ source to \SOURCE_DEFINITIONS\ and the \https://awscertifications.github.io/\ → \�ws\ vendor mapping.

Notes

  • Source is enabled by default and requires no schema migration (config-driven catalog).
  • The page self-declares it is not affiliated with / endorsed by AWS; it is community-maintained (r/AWSCertifications).

Summary by CodeRabbit

  • New Features
    • Added the AWSCertifications community wiki as an enabled content source.
    • Configured the wiki to be processed as a single post.
    • Added AWS vendor recognition for content from the wiki.

Add the r/AWSCertifications community wiki vouchers & discounts page as a
WEBSITE source. The page is a single MkDocs document (no per-card wrappers),
so it is parsed as one post per crawl using:
  article_selector = article.md-content__inner
  title_selector  = h1
  link_selector   = self

Also add a VENDOR_MAPPINGS url-pattern entry so posts from this source are
tagged with the 'aws' vendor.
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 974383f2-a65c-4db4-9c9d-d3761f2b6e7d

📥 Commits

Reviewing files that changed from the base of the PR and between fa006de and 7c3d67e.

📒 Files selected for processing (1)
  • voucherbot/database/bootstrap.py

📝 Walkthrough

Walkthrough

The bootstrap configuration adds the AWSCertifications community wiki as an enabled Tier C source. It configures MkDocs parsing and maps the wiki URL prefix to AWS.

Changes

AWS wiki source

Layer / File(s) Summary
Register the AWS wiki source
voucherbot/database/bootstrap.py
Adds the AWSCertifications wiki source with AWS metadata, MkDocs selectors, Tier C priority settings, and a URL-prefix mapping for awscertifications.github.io.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 7c3d6

This PR adds a localized website source and vendor mapping; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the addition of the AWSCertifications wiki vouchers source.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch source-addition

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Devathmaj
Devathmaj merged commit f2cee16 into main Aug 14, 2026
9 checks passed
@Devathmaj
Devathmaj deleted the source-addition branch August 17, 2026 05:10
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.

1 participant