mirror of
https://github.com/tanjiro517/cf-bypass-fast.git
synced 2025-12-06 03:18:03 +01:00
Add files via upload
This commit is contained in:
26
api_test.py
Normal file
26
api_test.py
Normal file
@@ -0,0 +1,26 @@
|
||||
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())
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main())
|
||||
Reference in New Issue
Block a user