WebsiteBench / tasks /lowes /environment /reference /clone /inventory_routes.py
AgPerry's picture
Add files using upload-large-folder tool
489b6e2 verified
Raw History Blame Contribute Delete
46.6 kB
"""Page families for every pathname in the Playwright route inventory.
``source-current/playwright-route-inventory-20260821/route-inventory.json``
recorded 121 same-origin pathnames reachable from the source home page. Six of
those families already had explicit clone pages; the rest are declared here.
What is observed and what is not:
* Every ``path`` below is **observed** — it is a pathname the inventory capture
actually collected from home-page anchors.
* Every ``label`` that matches an anchor's link text or an accessible page's
``<title>`` is **observed**; the companion probe
(``all-links-probe.json``) recorded those strings.
* Every ``lede``, ``blocks`` paragraph, ``bullets`` entry and facet is
**clone-authored**. The probe reported ``Access Denied`` for 110 of the 121
URLs, including all ``/l/``, ``/pd/``, ``/pl/``, ``/collections/``,
``/configure/``, ``/b/``, ``/n/``, ``/ai``, ``/store/`` and ``/weekly-ad``
pathnames, so no source layout, copy or merchandising was ever seen. The
pages built from this module render a local reconstruction and say so.
Nothing here is derived from a clock or a random source, so the same route
renders byte-identical HTML on every request.
"""
from __future__ import annotations
from dataclasses import dataclass
from html import escape
from typing import Any, Mapping, Sequence
from urllib.parse import quote_plus, urlencode
# ---------------------------------------------------------------------------
# /l/... landing pages
# ---------------------------------------------------------------------------
@dataclass(frozen=True)
class Landing:
"""One ``/l/`` route: a distinct heading, body and related-link set."""
path: str
group: str
label: str
title: str
lede: str
blocks: tuple[tuple[str, str], ...]
bullets: tuple[str, ...] = ()
related: tuple[tuple[str, str], ...] = ()
LANDING_PAGES: tuple[Landing, ...] = (
Landing(
"/l/Credit",
"Credit",
"Lowe's Credit Center",
"Lowe's Credit Center | Lowe's Offline Clone",
"Compare the card products this clone represents and open the local application form. No credit product, application or bureau enquiry exists here.",
(
("Consumer credit card", "A revolving card modelled locally with a fixed everyday discount on eligible orders. The clone stores no application, identity or bureau data."),
("Business credit", "A business account tier represented as a single sample offer so the Pro pages have a destination to link to."),
("Manage an account", "Sign-in, statement and payment surfaces are represented by the clone's local account pages instead of a card servicing portal."),
),
("Everyday sample discount on eligible offline orders", "Sample promotional financing tiers", "No card number is ever accepted anywhere in this clone"),
(("/l/savings", "Savings"), ("/l/Pro", "Lowe's PRO"), ("/?account=open", "Local account")),
),
Landing(
"/l/Pro",
"Pro",
"Lowe's PRO",
"Lowe's PRO | Lowe's Offline Clone",
"The Pro hub for trade customers, reconstructed locally. Volume pricing, job-lot quantities and account management are represented as sample content.",
(
("Built for the trade", "Pro-only merchandising rails, bulk pack sizes and jobsite delivery windows are represented with the clone's synthetic catalog."),
("Account tools", "Purchase tracking, quote requests and multi-user permissions are described here; the clone implements only its own local order history."),
),
("Volume pricing tiers", "Jobsite delivery windows", "Purchase tracking against local orders"),
(("/l/Pro/pro-benefits", "Pro Rewards"), ("/l/Pro/resources-for-pros", "Resources for Pros"), ("/orders", "Order status")),
),
Landing(
"/l/Pro/pro-benefits",
"Pro",
"MyLowe's Pro Rewards Program",
"MyLowe's Pro Rewards Program | Lowe's Offline Clone",
"The Pro loyalty tier, represented locally. Points, tier thresholds and perks below are clone-authored sample values.",
(
("Earning", "Local orders placed in this clone accrue sample points at a flat rate; nothing is redeemable and no external loyalty account exists."),
("Tiers", "Three sample tiers are described so the Pro hub has a benefits page to link to. Tier state is not persisted per account."),
),
("Sample points on eligible offline orders", "Free delivery threshold on the local sample tier", "Bulk savings represented in the clone catalog"),
(("/l/Pro", "Lowe's PRO"), ("/l/about/mylowes-rewards", "MyLowe's Rewards"), ("/l/Pro/resources-for-pros", "Resources for Pros")),
),
Landing(
"/l/Pro/resources-for-pros",
"Pro",
"Resources for Pros",
"Resources for Pros | Lowe's Offline Clone",
"Reference material for trade customers: local guides, sample rebate paperwork and quantity calculators, all clone-side.",
(
("Job planning", "Material estimators and takeoff sheets are described as clone-local tools. None of them submits anywhere."),
("Paperwork", "Tax exemption, quote and invoice flows are represented as static sample content, not as forms that store data."),
),
("Local material estimator copy", "Sample quote request outline", "Sample tax exemption checklist"),
(("/l/Pro", "Lowe's PRO"), ("/l/help/special-orders", "Special orders"), ("/l/help/rebate-center", "Rebates")),
),
Landing(
"/l/about/download-apps",
"About",
"Lowe's App",
"Lowe's App | Lowe's Offline Clone",
"The mobile app promotion page, reconstructed locally. No store listing, deep link or download is reachable from this clone.",
(
("In-app features", "Store mode, list sync and order tracking are described as sample capabilities. The clone links back to its own local equivalents."),
("Getting the app", "The source page offered store badges and an SMS link. Neither is reproduced: this clone never sends a message or leaves the local origin."),
),
("Local list and order links instead of store badges", "No SMS or email hand-off", "No external download endpoint"),
(("/lists", "Lists"), ("/orders", "Order status"), ("/l/about/mylowes-rewards", "MyLowe's Rewards")),
),
Landing(
"/l/about/honor-our-military",
"About",
"Military Discount",
"Military Discount | Lowe's Offline Clone",
"The military benefit page, represented locally. This clone verifies no one's service status and grants no discount.",
(
("Who it covers", "The source programme described active duty, veterans and their families. The clone reproduces that structure as sample copy only."),
("Verification", "Real enrolment runs through a third-party identity check. This clone deliberately implements no identity verification at all."),
),
("Sample everyday discount description", "No identity or service verification", "No personal data is collected"),
(("/l/about/mylowes-rewards", "MyLowe's Rewards"), ("/l/about/how-we-help", "How We Help"), ("/?account=open", "Local account")),
),
Landing(
"/l/about/how-we-help",
"About",
"How We Help",
"How We Help | Lowe's Offline Clone",
"A community and disaster-relief overview, reconstructed as local sample content.",
(
("Community programmes", "Grants, skilled-trade scholarships and neighbourhood projects are summarised as clone-authored sample copy."),
("Disaster response", "The source page described relief logistics. Nothing here solicits, accepts or routes a donation."),
),
("No donation form", "No third-party charity hand-off", "Sample programme descriptions only"),
(("/l/about/honor-our-military", "Military Discount"), ("/l/about/safe", "Safety Unites Us"), ("/l/about/suppliers", "Suppliers")),
),
Landing(
"/l/about/lowes-marketplace",
"About",
"Lowe's Marketplace",
"Lowe's Marketplace | Lowe's Offline Clone",
"The third-party seller marketplace, represented locally. This clone hosts no sellers and brokers no transactions.",
(
("How marketplace items differ", "Shipping, returns and support responsibilities differ for third-party items. The clone describes that split without implementing separate sellers."),
("Selling on the marketplace", "The source page carried a seller application. This clone shows the structure and submits nothing."),
),
("Every clone catalog row is first-party", "No seller onboarding form", "No commission or payout logic"),
(("/l/help/returns-policy", "Returns & Exchanges"), ("/l/help/shipping-delivery", "Shipping & Delivery"), ("/b/lowesbrands", "Brand Directory")),
),
Landing(
"/l/about/mylowes-rewards",
"About",
"MyLowe's Rewards Program",
"MyLowe's Rewards Program | Lowe's Offline Clone",
"The consumer loyalty programme, reconstructed locally. Points and status tiers below are clone-authored sample values.",
(
("Earning and status", "Sample tiers are described so the header and drawer have a rewards destination. No tier state is stored against a local account."),
("Member perks", "Free standard delivery, extended returns and member pricing are represented as sample copy against the clone's own catalog."),
),
("Sample points per offline order", "Member-priced sample deals", "No external loyalty account"),
(("/l/about/mylowes-rewards-homecare", "Rewards HomeCare"), ("/l/Pro/pro-benefits", "Pro Rewards"), ("/subscriptions", "Subscriptions")),
),
Landing(
"/l/about/mylowes-rewards-homecare",
"About",
"MyLowe's Rewards HomeCare",
"MyLowe's Rewards HomeCare | Lowe's Offline Clone",
"The paid home-maintenance membership, represented locally. No subscription, billing schedule or service visit is created.",
(
("What a plan covers", "Seasonal maintenance visits and appliance checks are described as sample entitlements."),
("Billing", "A real membership bills on a recurring schedule. This clone accepts no card, opens no subscription and charges nothing."),
),
("No recurring billing", "No scheduled service visit", "Sample entitlement list only"),
(("/l/about/mylowes-rewards", "MyLowe's Rewards"), ("/l/shop/home-maintenance", "Home Maintenance"), ("/maintenance", "$99 Maintenance")),
),
Landing(
"/l/about/privacy-and-security-statement",
"About",
"Privacy Statement",
"Privacy Statement | Lowe's Offline Clone",
"What this offline clone stores. This is a statement about the clone, not a reproduction of Lowe's privacy statement.",
(
("What the clone stores", "A local session row, an optional local account with a salted password hash, cart lines, and local orders. Everything lives in one site-bound SQLite file."),
("What the clone never stores", "No credential, cookie value, authorization header, payment instrument, verification code or third-party identifier is written to disk, logs or evidence artifacts."),
("Where data goes", "Nowhere. No request in this clone leaves the local origin, and the local mail outbox records delivery as LOCAL_ONLY with no message body."),
),
("Session cookie is __Host- prefixed, Secure, HttpOnly and never carries a Domain", "Verification codes exist only in process memory", "No external analytics, tag manager or beacon"),
(("/l/about/terms-and-conditions-of-use", "Terms"), ("/l/about/safe", "Safety Unites Us"), ("/privacy", "Privacy")),
),
Landing(
"/l/about/safe",
"About",
"Safety Unites Us",
"Safety Unites Us | Lowe's Offline Clone",
"A product- and jobsite-safety hub, reconstructed as local sample content.",
(
("Product safety", "Recall notices and safety bulletins are represented locally. The clone publishes no real recall and monitors no regulator feed."),
("Working safely", "Personal protective equipment and tool-handling guidance are summarised as clone-authored sample copy."),
),
("Sample safety bulletins only", "No regulator feed is consumed", "No incident reporting form"),
(("/l/help/recalls-and-product-safety", "Recalls & Product Safety"), ("/l/about/how-we-help", "How We Help"), ("/n/how-to/clean-and-maintain-your-grill-ht", "Grill maintenance")),
),
Landing(
"/l/about/store-services",
"About",
"Store Services",
"Store Services | Lowe's Offline Clone",
"The in-store service menu, represented locally: key cutting, paint mixing, blind cutting, tool rental and truck rental.",
(
("At the service desk", "Each service is described with a sample turnaround. No appointment, work order or store queue exists in this clone."),
("Made-to-measure", "Blind and shade cutting has a working local configurator in this clone; it prices width and height locally and adds the result to the local cart."),
),
("Key cutting and paint mixing described as samples", "Blind cutting has a real local configurator", "No appointment booking"),
(("/configure/blinds/allen-roth-Cordless-Cellular-Shade/5015737843", "Configure a shade"), ("/l/shop/rental", "Lowe's Rental"), ("/Lowes-Stores", "Store directory")),
),
Landing(
"/l/about/suppliers",
"About",
"Lowe's Suppliers",
"Lowe's Suppliers | Lowe's Offline Clone",
"The vendor-relations page, represented locally. No supplier portal, onboarding queue or contract exists here.",
(
("Becoming a supplier", "The source page carried an application funnel. The clone reproduces the outline and submits nothing anywhere."),
("Supplier requirements", "Compliance, packaging and logistics expectations are summarised as clone-authored sample copy."),
),
("No supplier application is transmitted", "No vendor portal authentication", "Sample requirement checklist"),
(("/l/about/lowes-marketplace", "Marketplace"), ("/b/lowesbrands", "Brand Directory"), ("/l/about/terms-and-conditions-of-use", "Terms")),
),
Landing(
"/l/about/terms-and-conditions-of-use",
"About",
"Terms and Conditions of Use",
"Terms and Conditions of Use | Lowe's Offline Clone",
"The terms that govern this offline clone. These are clone terms and are not a reproduction of Lowe's terms of use.",
(
("Scope", "This site is a WebsiteBench evaluation fixture. It is not operated by Lowe's, it creates no commercial relationship and it fulfils nothing."),
("Accounts and orders", "Local accounts, carts and orders exist only in this clone's database and can be deleted at any time by resetting the site backend."),
("Payments", "Checkout accepts a single opaque local-sandbox scenario id. No card, bank, wallet or payment credential is accepted anywhere."),
),
("No real order is fulfilled", "No real payment is taken", "No message is sent to any third party"),
(("/l/about/privacy-and-security-statement", "Privacy Statement"), ("/terms", "Terms"), ("/l/help", "Help Center")),
),
Landing(
"/l/fresh-projects-and-inspiration",
"Inspiration",
"On Trend",
"On Trend: Fresh Projects and Inspiration | Lowe's Offline Clone",
"A seasonal inspiration hub. Every look below is assembled from the clone's own synthetic catalog.",
(
("This season's looks", "Room-level project stories link into the clone's local product lists rather than to editorial the clone never captured."),
("Shop the look", "Each story links to a local product list so the inspiration rail has a real, filterable destination."),
),
("Assembled from clone catalog rows", "Links to local product lists", "No captured editorial imagery"),
(("/pl/Fall-hosting/1811163654388", "Fall hosting"), ("/pl/Man-cave/1820250163790", "Man cave"), ("/diy-projects-and-ideas", "DIY Projects & Ideas")),
),
Landing(
"/l/help",
"Help",
"Help Center",
"Help Center | Lowe's Offline Clone",
"The support hub for this clone. Every topic below resolves to a local page; nothing opens a ticket or contacts an agent.",
(
("Popular topics", "Returns, delivery, protection plans, rebates, recalls and special orders each have their own local page in this clone."),
("Contacting support", "The source page offered chat, phone and email. This clone exposes none of them and sends no message."),
),
("No live chat", "No support ticket is created", "Every topic link stays on the local origin"),
(("/l/help/returns-policy", "Returns"), ("/l/help/shipping-delivery", "Shipping & Delivery"), ("/mylowes/orders", "Order status")),
),
Landing(
"/l/help/lowes-protection-plan",
"Help",
"Protection Plans",
"Protection Plans | Lowe's Offline Clone",
"Extended protection coverage, represented locally. No plan is sold, registered or claimable in this clone.",
(
("What a plan covers", "Sample coverage terms for major appliances and outdoor power equipment are described so product pages have somewhere to link."),
("Filing a claim", "Real claims run through a third-party administrator. This clone implements no claim intake at all."),
),
("No plan is added to the local cart", "No claim intake", "Sample coverage terms only"),
(("/l/help/returns-policy", "Returns & Exchanges"), ("/l/help/recalls-and-product-safety", "Recalls"), ("/pl/Top-electrolux-kitchen-appliances-2026/3320782443347", "Kitchen appliances")),
),
Landing(
"/l/help/rebate-center",
"Help",
"Rebates",
"Rebates | Lowe's Offline Clone",
"The rebate lookup and submission hub, represented locally. No rebate is validated, tracked or paid.",
(
("Finding an offer", "Rebate offers are described as sample entries tied to the clone's synthetic catalog categories."),
("Submitting", "The source page carried a submission form requiring a receipt and personal details. This clone collects none of that."),
),
("No rebate submission form", "No receipt upload", "No payout of any kind"),
(("/l/savings", "Savings"), ("/l/savings/coupons", "Coupons"), ("/l/Pro/resources-for-pros", "Resources for Pros")),
),
Landing(
"/l/help/recalls-and-product-safety",
"Help",
"Recalls & Product Safety",
"Recalls & Product Safety | Lowe's Offline Clone",
"Product recall notices, represented locally. This clone publishes no real recall and mirrors no regulator feed.",
(
("Checking a product", "A real notice board lists model and serial ranges. The clone describes the structure without asserting any recall."),
("What to do", "Stop-use, refund and replacement guidance is summarised as clone-authored sample copy."),
),
("No real recall is asserted", "No regulator feed is mirrored", "No model or serial lookup"),
(("/l/about/safe", "Safety Unites Us"), ("/l/help/lowes-protection-plan", "Protection Plans"), ("/l/help", "Help Center")),
),
Landing(
"/l/help/returns-policy",
"Help",
"Returns & Exchanges",
"Returns & Exchanges | Lowe's Offline Clone",
"The returns policy, represented locally. No return, exchange or refund can be started in this clone.",
(
("Return windows", "Sample windows by category — a standard window, a shorter one for outdoor power equipment, and a longer one for the sample rewards tier."),
("Starting a return", "A real return starts from order history. This clone's local order history is read-only and initiates nothing."),
),
("Local order history is read-only", "No refund is issued", "No return label is generated"),
(("/orders", "Local order history"), ("/l/help/shipping-delivery", "Shipping & Delivery"), ("/l/about/mylowes-rewards", "MyLowe's Rewards")),
),
Landing(
"/l/help/shipping-delivery",
"Help",
"Pickup, Shipping & Delivery",
"Pickup, Shipping & Delivery | Lowe's Offline Clone",
"How the clone represents fulfilment: store pickup and delivery, both simulated.",
(
("Store pickup", "Checkout binds an order to one of the clone's four sample stores. No store is notified and nothing is held anywhere."),
("Delivery", "Delivery day counts come from the clone catalog and are synthetic. No carrier, address validation or dispatch exists."),
),
("Pickup and delivery are both local simulations", "No carrier integration", "No address validation service"),
(("/Lowes-Stores", "Store directory"), ("/l/help/returns-policy", "Returns"), ("/checkout", "Checkout")),
),
Landing(
"/l/help/special-orders",
"Help",
"Special Orders",
"Special Orders | Lowe's Offline Clone",
"Made-to-order and non-stock merchandise, represented locally.",
(
("How a special order works", "Sample lead times and deposit rules are described. The clone takes no deposit and places no vendor order."),
("Configurable products", "The clone's one real special-order surface is the blind and shade configurator, which prices a cut size locally."),
),
("No deposit is taken", "No vendor purchase order", "Blind configurator is the one live local example"),
(("/configure/blinds/allen-roth-2-in-Slat-Width-20-in-x-36-in-Cordless-Smooth-White-Faux-Wood-Room-Darkening-Horizontal-Blinds/5015293435", "Configure a blind"), ("/l/about/store-services", "Store Services"), ("/l/Pro", "Lowe's PRO")),
),
Landing(
"/l/install",
"Install",
"Installation Services",
"Installation Services | Lowe's Offline Clone",
"Professional installation, represented locally. No installer is scheduled, dispatched or paid.",
(
("Popular installations", "Appliance, flooring, window and door installs are described with sample scopes tied to the clone's catalog categories."),
("How scheduling would work", "A real flow measures, quotes and books an independent installer. The clone collects no address and books nothing."),
),
("No measurement appointment", "No installer is contacted", "No quote is generated"),
(("/installations", "Projects & Installations"), ("/l/about/store-services", "Store Services"), ("/pl/Top-electrolux-kitchen-appliances-2026/3320782443347", "Kitchen appliances")),
),
Landing(
"/l/savings",
"Savings",
"Savings",
"Savings | Lowe's Offline Clone",
"The savings hub. Every offer below is a clone-side sample built from the local catalog's was/now pricing.",
(
("Where the savings come from", "Catalog rows carry a synthetic was-price. The clone derives every 'save' figure from those two literals and nothing else."),
("Offer types", "Coupons, daily deals and clearance each get their own local page so the promo strip has real destinations."),
),
("Every price is synthetic", "No offer is redeemable", "No promotional code is validated"),
(("/l/savings/coupons", "Coupons"), ("/l/savings/daily-deals", "Daily Deals"), ("/pl/Deals/1611079983848", "Deals list")),
),
Landing(
"/l/savings/coupons",
"Savings",
"Coupons",
"Coupons | Lowe's Offline Clone",
"Sample coupons. None of these codes is accepted at the clone's checkout, which takes no promotional input at all.",
(
("Available offers", "Three sample offers are described so the savings hub has a coupon destination. They are illustrative strings, not redeemable codes."),
("Why nothing applies", "The clone's checkout accepts a contact block, a fulfilment choice and one opaque sandbox scenario id. There is no coupon field to attack."),
),
("No coupon field at checkout", "No code validation endpoint", "Sample offer text only"),
(("/l/savings", "Savings"), ("/l/savings/daily-deals", "Daily Deals"), ("/l/help/rebate-center", "Rebates")),
),
Landing(
"/l/savings/daily-deals",
"Savings",
"Daily Deals",
"Daily Deals | Lowe's Offline Clone",
"A rotating-deal surface, represented as a fixed local list. Nothing here rotates: the clone reads no clock.",
(
("Today's sample deals", "The deal set is a frozen list of catalog rows so two runs of the page render byte-identical HTML."),
("Why there is no countdown", "A real page counts down to an expiry. This clone deliberately uses no clock, so the deal window is described in words instead."),
),
("No countdown timer", "No clock is read", "Deal membership is frozen"),
(("/pl/Deals/1611079983848", "Deals"), ("/pl/Deals-on-tools-and-outdoor-power-equipment/3411464183736", "Tool deals"), ("/l/savings", "Savings")),
),
Landing(
"/l/shop/gift-cards",
"Shop",
"Gift Cards",
"Gift Cards | Lowe's Offline Clone",
"Gift cards, represented locally. No card is issued, funded, balanced or redeemed in this clone.",
(
("Card types", "Physical, digital and business cards are described as sample products. None is addable to the local cart."),
("Why nothing is purchasable", "Funding a card is a payment operation. This clone accepts no payment instrument, so gift cards stay descriptive."),
),
("No card is issued", "No balance lookup", "No payment instrument is accepted"),
(("/l/shop/lowes-brands", "Lowe's Brands"), ("/checkout", "Local sandbox checkout"), ("/l/help", "Help Center")),
),
Landing(
"/l/shop/home-maintenance",
"Shop",
"Home Maintenance",
"Home Maintenance | Lowe's Offline Clone",
"Seasonal maintenance shopping, assembled from the clone's own catalog.",
(
("Seasonal checklist", "A fixed checklist links each task to a local product list so the page has real navigation rather than editorial the clone never captured."),
("Repeat delivery", "Consumable maintenance items link to the clone's subscriptions page, which is one of the six source pages that was actually reachable."),
),
("Checklist links to local lists", "Ties into the local subscriptions page", "No seasonal scheduling"),
(("/subscriptions", "Subscriptions"), ("/pl/Fall-lawn-care/2020969449217", "Fall lawn care"), ("/maintenance", "$99 Maintenance")),
),
Landing(
"/l/shop/lowes-brands",
"Shop",
"Lowe's Brands",
"Lowe's Brands | Lowe's Offline Clone",
"The owned-brand hub. This clone's catalog mixes invented brands with brand names read from observed home-page anchor text.",
(
("How brands appear here", "Every brand shown in the clone either comes from the seeded synthetic corpus, where names are deliberately invented, or from an anchor label the route inventory actually recorded."),
("Browsing by brand", "The brand directory lists every brand the local catalog contains and links each one into a filtered search."),
),
("Two clearly separated brand corpora", "Directory is generated from catalog rows", "No brand page was ever captured from the source"),
(("/b/lowesbrands", "Brand Directory"), ("/l/shop/lowes-creator", "Lowe's Creators"), ("/best-sellers", "Best Sellers")),
),
Landing(
"/l/shop/lowes-creator",
"Shop",
"Lowe's Creators",
"Lowe's Creators | Lowe's Offline Clone",
"A creator-programme page, represented locally. No creator, application or storefront exists in this clone.",
(
("The programme", "A real programme onboards creators and attributes sales. The clone describes the shape and attributes nothing."),
("Creator picks", "Curated picks link to local product lists so the page has a working destination."),
),
("No creator application", "No sales attribution", "No external social hand-off"),
(("/l/fresh-projects-and-inspiration", "On Trend"), ("/diy-projects-and-ideas", "DIY Projects & Ideas"), ("/pl/Man-cave/1820250163790", "Man cave")),
),
Landing(
"/l/shop/online-paint-store",
"Shop",
"Online Paint Store",
"Online Paint Store | Lowe's Offline Clone",
"Paint shopping, represented locally. No colour is matched, tinted or mixed in this clone.",
(
("Choosing a colour", "A real store offers a colour picker backed by a tinting system. The clone describes the flow and picks nothing."),
("Sheens and finishes", "Sheen guidance is summarised as clone-authored sample copy against the catalog's paint category."),
),
("No colour picker", "No tint formula", "No sample order"),
(("/c/Paint", "Shop Paint"), ("/l/about/store-services", "Store Services"), ("/diy-projects-and-ideas", "DIY Projects & Ideas")),
),
Landing(
"/l/shop/rental",
"Shop",
"Lowe's Rental",
"Lowe's Rental | Lowe's Offline Clone",
"Tool and truck rental, represented locally. No reservation, deposit or rental agreement is created.",
(
("Tool rental", "Sample day and week rates are described for the catalog's tool category. Nothing is reserved."),
("Truck rental", "A real flow needs a licence, an agreement and a hold. This clone collects no identity document and takes no hold."),
),
("No reservation is stored", "No deposit or hold", "No licence or agreement is collected"),
(("/c/Tools", "Shop Tools"), ("/l/about/store-services", "Store Services"), ("/l/Pro", "Lowe's PRO")),
),
Landing(
"/l/your-recommendations",
"For You",
"More Suggestions for You",
"More Suggestions for You | Lowe's Offline Clone",
"A personalised rail, represented locally. This clone builds no profile and tracks no behaviour.",
(
("Why nothing is personalised", "A real rail reads a behavioural profile. The clone has no profile store, no tracker and no third-party identifier, so it shows a fixed catalog slice instead."),
("What is shown", "A frozen selection of catalog rows, in catalog id order, identical for every visitor and every request."),
),
("No behavioural profile", "No tracking identifier", "Identical for every visitor"),
(("/best-sellers", "Best Sellers"), ("/pl/LOWES-essentials/2211386766018", "Essentials"), ("/search", "Shop All")),
),
)
LANDING_BY_PATH: dict[str, Landing] = {page.path: page for page in LANDING_PAGES}
# ---------------------------------------------------------------------------
# /pl/... product lists
# ---------------------------------------------------------------------------
@dataclass(frozen=True)
class ProductList:
"""One ``/pl/`` route with a frozen membership and local facet controls."""
path: str
label: str
title: str
blurb: str
product_ids: tuple[int, ...]
breadcrumb: tuple[str, ...] = ()
PRODUCT_LISTS: tuple[ProductList, ...] = (
ProductList(
"/pl/Deals/1611079983848",
"Deals",
"Deals | Lowe's Offline Clone",
"Every catalog row in this clone that carries a was-price. Sorting and filtering below run entirely on the server against local data.",
(5001424439, 5013538045, 5014029863, 5015113761, 5016858181, 5013703321, 1000064061, 5002188365, 5017518505, 1001857970),
("Deals",),
),
ProductList(
"/pl/Deals-on-tools-and-outdoor-power-equipment/3411464183736",
"Deals on Tools & Outdoor Power Equipment",
"Deals on Tools & Outdoor Power Equipment | Lowe's Offline Clone",
"Tool and outdoor power equipment deals drawn from the local catalog's tools, lawn and outdoor categories.",
(5016858181, 5013814873, 5014700279, 5014665335, 5005331979, 5017518505),
("Deals", "Tools & Outdoor Power Equipment"),
),
ProductList(
"/pl/Dewalt-generators/2311906378830",
"Generators & Portable Power",
"Generators & Portable Power | Lowe's Offline Clone",
"The observed pathname names a brand this clone's catalog does not carry, so membership here is the local portable-power selection instead.",
(5013814873, 5014700279, 5016858181),
("Tools", "Generators & Portable Power"),
),
ProductList(
"/pl/Fall-gardening/2120885942585",
"Fall Gardening",
"Fall Gardening | Lowe's Offline Clone",
"Lawn and garden rows from the local catalog, arranged as a seasonal list.",
(5014665335, 5014700279, 5013814873),
("Lawn & Garden", "Fall Gardening"),
),
ProductList(
"/pl/Fall-hosting/1811163654388",
"Fall Hosting",
"Fall Hosting | Lowe's Offline Clone",
"Cooking, entertaining and outdoor-living rows from the local catalog.",
(5005331979, 5018522083, 5017946351, 5002188365, 5020564565, 5015113761),
("Outdoor Living", "Fall Hosting"),
),
ProductList(
"/pl/Fall-lawn-care/2020969449217",
"Fall Lawn Care",
"Fall Lawn Care | Lowe's Offline Clone",
"Seasonal lawn-care equipment from the local catalog.",
(5014665335, 5014700279, 5013814873, 1001857970),
("Lawn & Garden", "Fall Lawn Care"),
),
ProductList(
"/pl/LOWES-essentials/2211386766018",
"Essentials",
"Essentials | Lowe's Offline Clone",
"Low-ticket repeat-purchase rows from the local catalog.",
(5017518505, 1001857970, 5013703321, 5002188365, 5005331979),
("Essentials",),
),
ProductList(
"/pl/Man-cave/1820250163790",
"Man Cave",
"Man Cave | Lowe's Offline Clone",
"Large-format entertainment and garage rows from the local catalog.",
(5020564565, 5018565197, 5005331979, 5013814873),
("Inspiration", "Man Cave"),
),
ProductList(
"/pl/Top-electrolux-kitchen-appliances-2026/3320782443347",
"Top Kitchen Appliances",
"Top Kitchen Appliances | Lowe's Offline Clone",
"Kitchen appliance rows from the local catalog. The observed pathname names a brand year the clone cannot verify, so membership is category-based.",
(5013538045, 5013537917, 5013049899, 5017607765, 5018732991, 5018737495, 5014118855, 5019191889, 5017946351, 5018522083, 5015113761, 5014581075, 5016114673, 5014029863),
("Appliances", "Kitchen"),
),
ProductList(
"/pl/Top-electrolux-laundry-pairs-2026/3011707811583",
"Top Laundry Pairs",
"Top Laundry Pairs | Lowe's Offline Clone",
"Laundry rows from the local catalog, including the stacked laundry centre.",
(5015416373, 1000064061),
("Appliances", "Laundry"),
),
ProductList(
"/pl/halloween-decorations/4294586669",
"Halloween Decorations",
"Halloween Decorations | Lowe's Offline Clone",
"This clone's catalog carries no seasonal decoration rows. The list renders its real, empty result rather than inventing merchandise.",
(),
("Holiday Decorations", "Halloween"),
),
ProductList(
"/pl/outdoor-tools-equipment/kobalt/48-volt-battery/4294612780-4294965883-4294609838",
"Outdoor Tools & Equipment — Battery Platform",
"Battery Platform Outdoor Tools | Lowe's Offline Clone",
"The deepest observed list pathname: three facet segments and three facet ids. Membership is the local battery-platform selection.",
(5016858181, 5013814873, 5014700279, 5014665335),
("Outdoor Tools & Equipment", "Battery Platform"),
),
)
PRODUCT_LIST_BY_PATH: dict[str, ProductList] = {
entry.path: entry for entry in PRODUCT_LISTS
}
SORT_OPTIONS: tuple[tuple[str, str], ...] = (
("relevance", "Best Match"),
("price-asc", "Price: Low to High"),
("price-desc", "Price: High to Low"),
("rating", "Top Rated"),
("reviews", "Most Reviewed"),
)
PRICE_BANDS: tuple[tuple[str, str, int, int], ...] = (
("under-50", "Under $50", 0, 4999),
("50-250", "$50 – $250", 5000, 25000),
("250-1000", "$250 – $1,000", 25001, 100000),
("over-1000", "$1,000 and up", 100001, 100_000_000),
)
def sort_products(
products: Sequence[Mapping[str, Any]], sort: str
) -> list[dict[str, Any]]:
"""Total, stable ordering for a list page. ``id`` breaks every tie."""
rows = [dict(row) for row in products]
if sort == "price-asc":
rows.sort(key=lambda row: (int(row["price_cents"]), int(row["id"])))
elif sort == "price-desc":
rows.sort(key=lambda row: (-int(row["price_cents"]), int(row["id"])))
elif sort == "rating":
rows.sort(key=lambda row: (-float(row["rating"]), int(row["id"])))
elif sort == "reviews":
rows.sort(key=lambda row: (-int(row["review_count"]), int(row["id"])))
else:
rows.sort(key=lambda row: int(row["id"]))
return rows
def filter_products(
products: Sequence[Mapping[str, Any]],
*,
brands: Sequence[str] = (),
band: str = "",
pickup_only: bool = False,
) -> list[dict[str, Any]]:
"""Apply the list page's three local facets."""
wanted = {brand for brand in brands if brand}
bounds = next(
((low, high) for key, _label, low, high in PRICE_BANDS if key == band), None
)
rows: list[dict[str, Any]] = []
for row in products:
if wanted and str(row["brand"]) not in wanted:
continue
if bounds and not bounds[0] <= int(row["price_cents"]) <= bounds[1]:
continue
if pickup_only and not row["pickup_today"]:
continue
rows.append(dict(row))
return rows
def list_query(
*,
sort: str = "",
brands: Sequence[str] = (),
band: str = "",
pickup_only: bool = False,
) -> str:
"""Rebuild a list page's query string from its active facet state."""
pairs: list[tuple[str, str]] = []
if sort:
pairs.append(("sort", sort))
pairs.extend(("brand", brand) for brand in brands if brand)
if band:
pairs.append(("band", band))
if pickup_only:
pairs.append(("pickup", "1"))
return urlencode(pairs)
# ---------------------------------------------------------------------------
# /collections/... grouped appliance suites
# ---------------------------------------------------------------------------
@dataclass(frozen=True)
class Collection:
path: str
label: str
title: str
blurb: str
product_ids: tuple[int, ...]
COLLECTIONS: tuple[Collection, ...] = (
Collection(
"/collections/Electrolux-High-Efficiency-Stackable-Large-Front-Load-Washer-with-electric-dryer-in-Titanium/GR_27220",
"High-Efficiency Stackable Laundry Suite",
"High-Efficiency Stackable Laundry Suite | Lowe's Offline Clone",
"A grouped laundry suite. The clone prices the group by summing its members and applying a fixed local suite saving.",
(5015416373, 1000064061),
),
Collection(
"/collections/Frigidaire-21-5-cu-ft-French-Door-Refrigerator-Electric-Range-and-Over-The-Range-Microwave-Fingerprint-Resistant-Stainless-Steel/GR_28353",
"French Door Refrigerator, Range and Dishwasher Suite",
"French Door Kitchen Suite | Lowe's Offline Clone",
"A grouped kitchen suite. Every member is a local catalog row and every price shown is the clone's own synthetic value.",
(5013049899, 5014581075, 5014029863),
),
)
COLLECTION_BY_PATH: dict[str, Collection] = {
entry.path: entry for entry in COLLECTIONS
}
# Fixed, clock-free suite discount applied to a collection's summed member price.
COLLECTION_SAVING_CENTS = 20000
# ---------------------------------------------------------------------------
# /configure/blinds/... made-to-measure configurators
# ---------------------------------------------------------------------------
BLIND_WIDTHS: tuple[int, ...] = (20, 23, 27, 31, 35, 39, 47, 52)
BLIND_HEIGHTS: tuple[int, ...] = (36, 48, 54, 60, 64, 72, 84)
BLIND_MOUNTS: tuple[tuple[str, str, int], ...] = (
("inside", "Inside mount", 0),
("outside", "Outside mount", 400),
)
BLIND_LIFTS: tuple[tuple[str, str, int], ...] = (
("cordless", "Cordless", 0),
("motorized", "Motorised", 6500),
)
# Base price + a per-square-inch surcharge, both clone-side literals.
BLIND_CENTS_PER_SQ_IN = 3
def blind_price_cents(
base_cents: int, width_in: int, height_in: int, mount: str, lift: str
) -> int:
"""Deterministic cut-to-size price for the blind configurator."""
area = max(1, int(width_in)) * max(1, int(height_in))
mount_extra = next(
(extra for key, _label, extra in BLIND_MOUNTS if key == mount), 0
)
lift_extra = next((extra for key, _label, extra in BLIND_LIFTS if key == lift), 0)
return int(base_cents) + area * BLIND_CENTS_PER_SQ_IN + mount_extra + lift_extra
CONFIGURATOR_PATHS: dict[str, int] = {
"/configure/blinds/allen-roth-2-in-Slat-Width-20-in-x-36-in-Cordless-Smooth-White-Faux-Wood-Room-Darkening-Horizontal-Blinds/5015293435": 5015293435,
"/configure/blinds/allen-roth-Cordless-Cellular-Shade/5015737843": 5015737843,
}
# ---------------------------------------------------------------------------
# single-page families
# ---------------------------------------------------------------------------
AI_SUGGESTIONS: tuple[tuple[str, str], ...] = (
("What size refrigerator fits a 36-inch opening?", "/pl/Top-electrolux-kitchen-appliances-2026/3320782443347"),
("Which battery platform tools share one charger?", "/pl/outdoor-tools-equipment/kobalt/48-volt-battery/4294612780-4294965883-4294609838"),
("How do I keep a griddle from rusting?", "/n/how-to/clean-and-maintain-your-grill-ht"),
("What do I need for a cut-to-size blind?", "/configure/blinds/allen-roth-Cordless-Cellular-Shade/5015737843"),
)
DIY_TOPICS: tuple[tuple[str, str, str], ...] = (
("Kids Club workshops", "Free family build sessions — the one DIY page whose source layout this clone actually observed.", "/diy-projects-and-ideas/workshops"),
("Grill and griddle care", "A seasonal maintenance walkthrough written for this clone.", "/n/how-to/clean-and-maintain-your-grill-ht"),
("Seasonal lawn care", "Local product list for autumn lawn work.", "/pl/Fall-lawn-care/2020969449217"),
("On Trend", "This season's local inspiration hub.", "/l/fresh-projects-and-inspiration"),
)
GRILL_ARTICLE_STEPS: tuple[tuple[str, str], ...] = (
("Burn off and scrape", "Run the grill hot for ten to fifteen minutes, then scrape the grates while they are still warm so residue lifts instead of baking on."),
("Wash the grates", "Let the grates cool to warm, then wash with hot water and a mild detergent. Rinse fully — detergent left on cast iron will strip the seasoning you are about to build."),
("Re-season cast iron", "Dry the grates completely, wipe a thin film of a high smoke-point oil across every surface, and heat until the oil stops smoking."),
("Empty the grease tray", "Pull the tray and cup, scrape them out, and wash them separately. A full tray is the single most common cause of a flare-up."),
("Check the burners and hoses", "Look for blocked burner ports and cracked hose sections. Test connections with soapy water rather than a flame."),
("Cover and store", "Cover the grill only once it is fully cool and dry, so trapped moisture does not sit against the firebox over winter."),
)
def brand_directory(
products: Sequence[Mapping[str, Any]],
) -> list[tuple[str, list[dict[str, str]]]]:
"""Group every catalog brand under its first character, A–Z then ``#``."""
brands = sorted({str(row["brand"]) for row in products}, key=str.casefold)
groups: dict[str, list[dict[str, str]]] = {}
for brand in brands:
initial = brand[0].upper()
key = initial if initial.isalpha() else "#"
groups.setdefault(key, []).append(
{"name": brand, "href": f"/search?q={quote_plus(brand)}"}
)
return sorted(groups.items(), key=lambda item: (item[0] == "#", item[0]))
# ---------------------------------------------------------------------------
# shared fragments
# ---------------------------------------------------------------------------
def reconstruction_notice(pathname: str) -> str:
"""The honest header every access-denied family carries."""
return (
'<div class="notice notice--sandbox" data-evidence-gap="access-denied">'
f"<strong>Local reconstruction.</strong> The route inventory recorded "
f"<code>{escape(pathname)}</code> on the source home page, but the follow-up "
"probe returned <em>Access Denied</em> for it, so no source layout or copy "
"was ever observed. Everything on this page is clone-authored and no request "
"leaves this origin.</div>"
)
def breadcrumbs(trail: Sequence[tuple[str, str]], current: str) -> str:
parts = "".join(
f'<a href="{escape(href, quote=True)}">{escape(text)}</a> / ' for href, text in trail
)
return f'<div class="breadcrumbs">{parts}{escape(current)}</div>'
def related_links(links: Sequence[tuple[str, str]]) -> str:
if not links:
return ""
items = "".join(
f'<a class="chip" href="{escape(href, quote=True)}">{escape(text)}</a>'
for href, text in links
)
return f'<section class="section"><h2 class="section__title">Related in this clone</h2><div class="chip-row">{items}</div></section>'