Delivers MIL-005 (lecture Step 4): the product URL comes from `PRODUCT_URL` (default: the lecture's Amazon page), price and title selectors and robot-check markers live in `constants.py`, and a robot-check page raises `RobotCheckError` with a clear message. The code does not try to solve or bypass the check. Outcome on the live page (2026-10-28): Amazon returned HTTP 200 with a robot-check page and no price; the page is kept (tokens redacted) as a test fixture and shown in the README. Two live requests were made in total, one to inspect the response and one for the screenshot; there are no retries or loops. Review: code against QC-PY-001 as RC-014 (Go, autonomous, not independent). 56 pytest tests (no network), ruff and mypy --strict pass. Task: MIL-005#1 Task: MIL-005#2 Task: MIL-005#3 Task: MIL-005#4 Task: MIL-005#5
83 lines
3.8 KiB
HTML
83 lines
3.8 KiB
HTML
<!DOCTYPE html>
|
|
<!-- Robot-check page that www.amazon.com returned to the bot on 2026-10-28 (tokens redacted). -->
|
|
<!--[if lt IE 7]> <html lang="en-us" class="a-no-js a-lt-ie9 a-lt-ie8 a-lt-ie7"> <![endif]-->
|
|
<!--[if IE 7]> <html lang="en-us" class="a-no-js a-lt-ie9 a-lt-ie8"> <![endif]-->
|
|
<!--[if IE 8]> <html lang="en-us" class="a-no-js a-lt-ie9"> <![endif]-->
|
|
<!--[if gt IE 8]><!-->
|
|
<html class="a-no-js" lang="en-us"><!--<![endif]--><head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<title dir="ltr">Amazon.com</title>
|
|
<meta name="viewport" content="width=device-width">
|
|
<link rel="stylesheet" href="https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/AmazonUI-3c913031596ca78a3768f4e934b1cc02ce238101.secure.min._V1_.css">
|
|
</head>
|
|
<body>
|
|
|
|
<!--
|
|
To discuss automated access to Amazon data please contact api-services-support@amazon.com.
|
|
For information about migrating to our APIs refer to our Marketplace APIs at https://developer.amazonservices.com/ref=rm_c_sv, or our Product Advertising API at https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html/ref=rm_c_ac for advertising use cases.
|
|
-->
|
|
|
|
<!--
|
|
Correios.DoNotSend
|
|
-->
|
|
|
|
<div class="a-container a-padding-double-large" style="min-width:350px;padding:44px 0 !important">
|
|
|
|
<div class="a-row a-spacing-double-large" style="width: 350px; margin: 0 auto">
|
|
|
|
<div class="a-row a-spacing-medium a-text-center"><i class="a-icon a-logo" alt="Amazon logo"></i></div>
|
|
|
|
<div class="a-box a-alert a-alert-info a-spacing-base">
|
|
<div class="a-box-inner">
|
|
<i class="a-icon a-icon-alert" alt="Alert icon"></i>
|
|
<h4>Click the button below to continue shopping</h4>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="a-section">
|
|
|
|
<div class="a-box a-color-offset-background">
|
|
<div class="a-box-inner a-padding-extra-large">
|
|
|
|
<form method="get" action="/errors_page/validateCaptcha" name="">
|
|
<input type="hidden" REDACTED" /><input type="hidden" name="amzn-r" value="/" />
|
|
<input type="hidden" REDACTED" />
|
|
<div class="a-section a-spacing-extra-large">
|
|
|
|
<div class="a-row">
|
|
<span class="a-button a-button-primary a-span12">
|
|
<span class="a-button-inner">
|
|
<button type="submit" class="a-button-text" alt="Continue shopping">Continue shopping</button>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="a-divider a-divider-section"><div class="a-divider-inner"></div></div>
|
|
|
|
<div class="a-text-center a-spacing-small a-size-mini">
|
|
<a href="https://www.amazon.com/gp/help/customer/display.html/ref=footer_cou?ie=UTF8&nodeId=508088">Conditions of Use</a>
|
|
<span class="a-letter-space"></span>
|
|
<span class="a-letter-space"></span>
|
|
<span class="a-letter-space"></span>
|
|
<span class="a-letter-space"></span>
|
|
<a href="https://www.amazon.com/gp/help/customer/display.html/ref=footer_privacy?ie=UTF8&nodeId=468496">Privacy Policy</a>
|
|
</div>
|
|
<div class="a-text-center a-size-mini a-color-base">
|
|
© 1996-2025, Amazon.com, Inc. or its affiliates
|
|
</div>
|
|
</div>
|
|
</body></html>
|
|
|