
    zLi                     B    d dl Z d dlZd dlmZmZ dZeedZd	dZd Z	dS )
    N)sync_playwrightErrorzChttp://apiec803a20e08d2684_c_US:driS9IZ2@res.proxy-seller.com:10000)httphttps      c           
      0   d}d}||k     r	 t                      5 }|j                            d          }|                    dd| ddd	          }|                                }|                    d
dd           |j                            |           }	|	j        dk    rH	 |		                                cd d d            S #  |	
                                cY cd d d            S xY wt          d|dz    d|	j         d| d           t          j        |           |dz  }	 d d d            n# 1 swxY w Y   nL# t          $ r?}
t          d|dz    d|
 d| d           t          j        |           |dz  }Y d }
~
nd }
~
ww xY w||k     d S d S )Nz52752|LowvmtHwwAqUu8MPYULRHja65igYCMAmsMeHDFgA26f5114br   T)headlesszBearer zapplication/jsonzkMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36)AuthorizationAcceptz
User-Agent)ignore_https_errorsextra_http_headerszhttps://empirebesttv124.cfddomcontentloaded)timeout
wait_until   z------ attempt    z: HTTP z, retrying in zs...z----- attempt z: Playwright error: )r   chromiumlaunchnew_contextnew_pagegotorequestgetstatusjsontextprinttimesleepPlaywrightError)urlretriesdelaybearer_tokenattemptpbrowsercontextpageresponsees              F/var/www/html/auto_sub_bot/base/utils/external_sources/empirebesttv.pysend_request_to_empirer.      sz   JLG
G

 	 "" !a*++! ,   "--(,)A<)A)A"4 'T( ( .   ''))		7Oa	bbb"?..s33?c))/'}}+! ! ! ! ! ! ! !,/'}}../! ! ! ! ! ! ! !2 hGAIhhhohh]bhhhiiiJu%%%qLGG7! ! ! ! ! ! ! ! ! ! ! ! ! ! !8  	 	 	^719^^!^^SX^^^___JuqLGGGGGG	= G





s_   E BD5'C:E C+D5E +=D5)E 5D99E <D9=E 
F
5FF
c                  F    t          j        dt                    } | j        S )Nzhttps://empirebesttv.com)proxies)requestsr   r0   r"   )ress    r-   get_empire_new_domainr3   0   s    
,17
C
C
CC7N    )r   r   )
r1   r   playwright.sync_apir   r   r!   proxyr0   r.   r3    r4   r-   <module>r8      so      I I I I I I I IM5
)
)& & & &P    r4   