"""Amazon homepage with 5 user agents that differ only in the word "bot". Run on October 3, 2026, from Mumbai."""
import httpx, time
from bs4 import BeautifulSoup
def words(h):
    s=BeautifulSoup(h,"html.parser")
    for t in s(["script","style","noscript"]): t.decompose()
    return len(s.get_text(" ").split())
for ua in ["MyScraperBot/1.0 (https://example.com/bot; you@example.com) httpx/0.28",
           "MyScraper/1.0 (you@example.com) python-httpx",
           "MyScraperBot/1.0",
           "MyScraper/1.0",
           "MyScraper/1.0 (https://example.com/bot; you@example.com) httpx/0.28"]:
    r=httpx.get("https://www.amazon.com/",headers={"User-Agent":ua},follow_redirects=True,timeout=25)
    print(f"{ua:75} {r.status_code} {len(r.content):>8} bytes {words(r.text):>5} words"); time.sleep(2)
