
    Qg                         S SK r S SKJr  S SKJr  S SKJr  S SKJr  S SK	J
r  S SKrS SK r S SKJr  S SKJr  S SKJr  S	\4S
 jrg)    N)	webdriver)Service)WebDriverWait)By)expected_conditions)logger)decodeinspect_linkc           
         [         R                  " S[        U 5      -   5        [        R                  " 5       nUR                  S5        UR                  S5        UR                  S5        UR                  S5        UR                  S5        UR                  S5        UR                  S5        UR                  S	5        S
SSSS.0nSUl        [        S5      n[        R                  " X1US9nUR                  S0 5         UR                  S5        [        US5      R                  [        R                  " [         R"                  S45      5      nUR%                  SU  S3U5        UR%                  SU5        [&        R(                  " S5        S nUR*                   H  nUR,                  (       d  M  [        [/        UR,                  R0                  UR,                  R2                  R                  SS5      5      5      nUR5                  S5      (       d  M{  [        USS R7                  5       R9                  SS5      S -   5      R;                  S!5      R/                  S"5      n	[<        R>                  " U	5      n  O   [&        R(                  " S5        URA                  5         URC                  5         UU(       a  URC                  5         $ $ ! [D         aT  n
[         R                  " S#[        U
5      -   5        URC                  5          S n
A
U(       a  URC                  5         g g S n
A
ff = f! U(       a  URC                  5         f f = f)$Nz!SELENIUMNEXECUTOR TRYING TO GET: z--no-sandboxz--remote-debugging-pipez--headless=newz--ignore-ssl-errors=yesz--ignore-certificate-errorsz$--blink-settings=imagesEnabled=falsez--disable-dev-shm-usagez--disable-gpuproxyz=http://kroisalex8:YIcLVEa3mdM4e7KsIW4W@rp-core.evomi.com:1000zlocalhost,127.0.0.1)httphttpsno_proxyzchrome-linux64/chromez!chromedriver-linux64/chromedriver)serviceoptionsseleniumwire_optionszNetwork.enablezhttps://csfloat.com/checker   zmat-input-0zarguments[0].value = ''z.arguments[0].dispatchEvent(new Event('input'))   zContent-Encodingidentityzb'{"iteminfo":   z\xe2\x84\xa2u   ™}zutf-8unicode_escapezSELENIUMEXECUTOR FUCKED UP: )#r   errorstrucChromeOptionsadd_argumentbinary_locationr   r   Chromeexecute_cdp_cmdgetr   untilECelement_to_be_clickabler   IDexecute_scripttimesleeprequestsresponser	   bodyheaders
startswithstripreplaceencodejsonloadsdelete_all_cookiesquit	Exception)r
   chrome_optionsr   webdriver_servicebrowser	url_inputiteminforesaidsdreckes              ./var/www/highfloat_scraper/SeleniumExecutor.pygetItemInforB      s   
LL4s<7HHI%%'N/ 9: 01 9: => FG 9:0 	ST-
G &=N" CD!PWG ,b1)12!'2.44&&}'=>
	 	!7~QGS<i	
 	

1##C|||)),,001CZP ??#455D2J,,.667H%PSVVW 01 
  $zz%0H $  	

1""$ LLN   3c!f<=LLN 
 LLN s9   B.K 4A!K BK 
L.2L)L1 )L..L1 1M)r)   seleniumwirer   !selenium.webdriver.chrome.servicer   selenium.webdriver.support.uir   selenium.webdriver.common.byr   selenium.webdriver.supportr   r%   r3   LoggingFormatterr   seleniumwire.utilsr	   $seleniumwire.undetected_chromedriverundetected_chromedriverr   r   rB        rA   <module>rN      s4     " 5 7 + @   # % 1Kc KrM   