Files
cf-bypass-fast-fork/api_test.py
estebanthilliez 772ed5a176
Some checks failed
CI / release (push) Failing after 1m21s
add cookie wait endpoint
2026-04-24 22:21:24 +02:00

36 lines
965 B
Python

import asyncio
import httpx
async def main():
async with httpx.AsyncClient(timeout=30.0) as client:
resp1 = await client.post(
"http://localhost:8080/cloudflare",
json={
"domain": "https://olamovies.watch/generate",
"mode": "iuam",
},
)
print(resp1.json())
resp2 = await client.post(
"http://localhost:8080/cloudflare",
json={
"domain": "https://lksfy.com/",
"siteKey": "0x4AAAAAAA49NnPZwQijgRoi",
"mode": "turnstile",
},
)
print(resp2.json())
resp3 = await client.post(
"http://localhost:8080/cookie",
json={
"domain": "https://example.com/",
"cookieName": "session_id",
},
)
print(resp3.json())
if __name__ == "__main__":
asyncio.run(main())