File size: 1,265 Bytes
25ae7fe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import asyncio
import httpx
from curl_cffi.requests import AsyncSession

async def check_mirrors():
    mirrors = [
        "https://larooza.mom",
        "https://larooza.site",
        "https://laroza-tv.net",
        "https://larozavideo.net",
        "https://larooza.video",
        "https://q.larozavideo.net"
    ]
    
    headers = {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
    }
    
    for mirror in mirrors:
        print(f"Checking {mirror}...")
        try:
            # Try curl-cffi first
            async with AsyncSession(impersonate="chrome110") as s:
                resp = await s.get(mirror, headers=headers, timeout=10)
                print(f"  [curl-cffi] {mirror}: {resp.status_code} | Title: {resp.text[:100].replace('\n', ' ')}")
                
            async with httpx.AsyncClient(http2=True, timeout=10) as client:
                resp = await client.get(mirror, headers=headers)
                print(f"  [httpx] {mirror}: {resp.status_code} | Title: {resp.text[:100].replace('\n', ' ')}")
        except Exception as e:
            print(f"  [Error] {mirror}: {e}")

if __name__ == "__main__":
    asyncio.run(check_mirrors())