ó
    –² j>
  ã                   óŠ   • S r SSKrSSKJr  SSKJrJr  SSKJr  \R                  r
S r\S:X  a  \R                  " S\5        gg)	a€  
BidBrain lost bids capture.

Reads every real auction bid on and lost (Motorway's own Bids & offers >
Didn't win screen for now, Mark 2026-08-24: "the original vision for BB
was to use ai to understand from our own data our best sellers... to make
educated bids... we could also use data that we bid on that didnt win").
Purchases alone only ever show what we actually paid; a lost auction's own
real "Sold for" price is the other half of that picture, how much it
actually would have taken to win, ready for a future suggested bid feature.

A lost outcome never changes once recorded, so this is a plain read and
store, no status updates, no email, unlike purchases_run.py.

  python3 lost_bids_run.py                read the first 2 pages (daily top up)
  python3 lost_bids_run.py --backfill     read the whole history (all pages)

Reads screens only. Never bids, never acts on the platforms.
é    N)Úsync_playwright)ÚdbÚruns)Úmotorwayc                  óž  • [         R                  " S5        [        R                  " 5         S[        R
                  ;   n U (       a  S O[        R                  " S5      nU (       a  SOSn[        SS5        [        5        n[        R                  " X2US S	9nS S S 5        [        S
[        W5       S35        [        R                  " U5      nU (       a  [        U5       S[        U5       S3nO+U(       a"  [        U5       S[        U5      S:w  a  SOS 3nOSn[        U5        [         R                  " SSU5        g ! , (       d  f       N­= f)NÚ	lost_bidsz
--backfillÚMotorwayé<   é   Úreadingz4Reading Motorway's Didn't win screen for new cars...c                 ó(   • [        SSU  SU S35      $ )Nr   zDidn't win page z, z new so far...)Ú	_progress)ÚnÚso_fars     Ú./Users/stevendouglas/BidBrain/lost_bids_run.pyÚ<lambda>Úmain.<locals>.<lambda>4   s   € ¤i°	Ð=MÈaÈSÐPRÐSYÐRZÐZhÐ;iÔ&jó    )Ú	max_pagesÚknownÚon_pagez
Motorway: z lost bids readz read, z newz new caré   ÚsÚ z6No new cars, every car on the list is already on file.T)r   Úbeginr   Úinit_dbÚsysÚargvÚlost_bid_refsr   r   r   Úread_didnt_winÚprintÚlenÚrecord_lost_bidsÚfinish)Úbackfillr   r   ÚpÚrowsÚnewÚsummarys          r   Úmainr*   #   s  € Ü‡J‚Jˆ{ÔÜ‡J‚J„LØœsŸx™xÑ'€Hö ‰D¤"×"2Ò"2°:Ó">€EÞ‘ A€IäˆiÐOÔPÜ	Ô	˜aÜ×&Ò&Ø¨%Ùjñlˆ÷ 
ô 
ˆJ”s˜4“y�k Ð
1Ô2ä
×
Ò
˜dÓ
#€CÞÜ˜“Y�K˜w¤s¨3£x j°Ð5‰Þ	Ü˜“X�J˜h¬c°#«h¸!«m¡sÀÐ&DÐE‰àJˆÜ	ˆ'„NÜ‡K‚K�˜T 7Õ+÷ 
Õ	ús   Á?D>Ä>
EÚ__main__r   )Ú__doc__r   Úplaywright.sync_apir   Úbidbrainr   r   Úbidbrain.readersr   Úprogressr   r*   Ú__name__Úguard© r   r   Ú<module>r4      sE   ðñó( å /ç Ý %ð
 �M‰M€	ò,ð> ˆzÓØ‡J‚Jˆ{˜DÕ!ð r   