DEV Community

FIRAT
FIRAT

Posted on AI-assisted

Did the sale really end? A small Python check over dated price reads

A Black Friday banner tells you when the sale ends. After the 2026 countdowns hit zero we read the same pricing pages again, and the stated end date was often wrong in one direction or the other. If you log prices with the date you read them, a few lines of Python can tell you what actually happened to each sale.

What we saw

Every price was read on the company's own pricing page.

Page Stated end What the dated reads show
Creatify Pro, annual billing 30 Nov 2026 $27 still shown on 1 Dec; back to $38 on 2 Dec
ElevenLabs Creator, annual sale 1 Dec 2026 $99 first year still shown on 2 Dec; replaced by a different offer on 3 Dec
Lingzio Monthly none shown $9.99 against a crossed-out $14.99 on 2 Nov; $14.99 with no reduced price on 3 Dec
Surfshark Starter, 2-year plan none shown $2.49 a month during Black Friday (21 Nov); $2.09 on 1 Dec

Two more were officially extended: Cloudways moved its BFCM802 code from 30 November to 4 December, and Pictory's Cyber Monday sale was marked "Extended" on 3 December.

The check

Each page is a stated end date (or None) and a list of reads: date, price, and whether a sale was shown.

from datetime import date

def verdict(stated_end, reads):
    """reads: list of (date, price, sale_shown) from the same pricing page, oldest first."""
    sale = [d for d, p, s in reads if s]
    if not sale:
        return "no sale seen"
    last_sale = max(sale)
    after = [(d, p, s) for d, p, s in reads if d > last_sale]
    if stated_end is None:
        return f"no end date; last seen {last_sale}" + ("; gone by " + str(after[0][0]) if after else "; still shown")
    if last_sale > stated_end:
        late = (last_sale - stated_end).days
        return f"shown {late} day(s) past its stated end ({stated_end})" + ("; gone by " + str(after[0][0]) if after else "; still shown")
    return f"ended on time ({stated_end})" if after else f"running, ends {stated_end}"

pages = {
    "Creatify Pro (annual)": (date(2026, 11, 30), [
        (date(2026, 10, 26), 38, False), (date(2026, 12, 1), 27, True), (date(2026, 12, 2), 38, False)]),
    "ElevenLabs Creator annual sale": (date(2026, 12, 1), [
        (date(2026, 12, 2), 99, True), (date(2026, 12, 3), 220, False)]),
    "Lingzio Monthly": (None, [
        (date(2026, 11, 2), 9.99, True), (date(2026, 12, 3), 14.99, False)]),
    "Surfshark Starter 2-year": (None, [
        (date(2026, 11, 21), 2.49, True), (date(2026, 12, 1), 2.09, True)]),
}

for name, (end, reads) in pages.items():
    sale_price = [p for d, p, s in reads if s][-1]
    print(f"{name:31} {verdict(end, reads)} | sale ${sale_price}, latest ${reads[-1][1]}")
Enter fullscreen mode Exit fullscreen mode

Output:

Creatify Pro (annual)           shown 1 day(s) past its stated end (2026-11-30); gone by 2026-12-02 | sale $27, latest $38
ElevenLabs Creator annual sale  shown 1 day(s) past its stated end (2026-12-01); gone by 2026-12-03 | sale $99, latest $220
Lingzio Monthly                 no end date; last seen 2026-11-02; gone by 2026-12-03 | sale $9.99, latest $14.99
Surfshark Starter 2-year        no end date; last seen 2026-12-01; still shown | sale $2.09, latest $2.09
Enter fullscreen mode Exit fullscreen mode

What the output is good for

  • Past the deadline: a price that outlives its stated end can disappear on any refresh. If you want it, the checkout total is the only record that counts.
  • No end date: the Lingzio row is the one to watch. Nothing on the page announced the change; only the second dated read shows it.
  • Cheaper later: the Surfshark row is a reminder that "Black Friday" is not always the low point. Compare the sale with the next offer, not only with the list price.

Two habits make this work: store the read date with every price, and re-read the same URL rather than a cached copy. Some pages keep the old sale markup in the HTML after the banner is hidden, so a plain fetch can report a sale that a browser no longer shows. We check those in a real browser.

The dated reads behind the table are on Kuponaut's price change log: https://kuponaut.com/price-changes/

Kuponaut is an affiliate partner of the tools mentioned and may earn a commission at no extra cost to you. Prices in the table were read on the companies' own pricing pages on the dates shown.

Top comments (1)

Collapse
 
aistackguide profile image
AI Stack Guide •

The dated-read discipline is the right instinct. Two refinements I'd make before trusting the output. First, sale_shown as a boolean conflates "the page still renders promo markup" with "the price actually moved", and you already spotted the failure mode (cached markup behind a hidden banner). Record where the signal came from per read - which element the sale label was in, plus the price block's own text - so a stale label can be told apart from a genuinely extended sale instead of both landing in "shown 1 day past its stated end". Deriving sale = billed < list also catches promotions that never got a label.

Second, the ElevenLabs row compares $99 with $220, but that is a change of billing terms rather than a price increase, and the Creatify row is monthly-on-annual-billing in both reads. Store currency and billing_period with every observation and compare like with like, otherwise a single tier change reads as a 122% rise. A page_hash column next to the date is cheap and catches A/B variants and per-session pricing that make two readers disagree on the same day.