Spaces:
Running
Running
Upload main.py
Browse files
main.py
CHANGED
@@ -324,10 +324,7 @@ async def toanime(input):
|
|
324 |
return 'Identifikasi Gagal'
|
325 |
|
326 |
@app.post("/akeno/toanime", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
327 |
-
async def toanime_endpoint(
|
328 |
-
file: UploadFile = File(...),
|
329 |
-
api_key: str = Depends(validate_api_key)
|
330 |
-
):
|
331 |
file_path = f"./uploads/{file.filename}"
|
332 |
try:
|
333 |
with open(file_path, "wb") as f:
|
@@ -351,13 +348,10 @@ async def toanime_endpoint(
|
|
351 |
os.remove(file_path)
|
352 |
|
353 |
@app.post("/akeno/xnxxsearch", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
354 |
-
async def xnxx_search(
|
355 |
-
payload: XnxxSearch,
|
356 |
-
api_key: None = Depends(validate_api_key)
|
357 |
-
):
|
358 |
try:
|
359 |
-
response =
|
360 |
-
result = response
|
361 |
return SuccessResponse(
|
362 |
status="True",
|
363 |
randydev={"results": result}
|
@@ -369,13 +363,10 @@ async def xnxx_search(
|
|
369 |
)
|
370 |
|
371 |
@app.post("/akeno/xnxx-dl", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
372 |
-
async def xnxx_download(
|
373 |
-
payload: XnxxLinks,
|
374 |
-
api_key: None = Depends(validate_api_key)
|
375 |
-
):
|
376 |
try:
|
377 |
-
response =
|
378 |
-
result = response
|
379 |
return SuccessResponse(
|
380 |
status="True",
|
381 |
randydev={"results": result}
|
@@ -387,13 +378,10 @@ async def xnxx_download(
|
|
387 |
)
|
388 |
|
389 |
@app.post("/akeno/xnxx-videodl", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
390 |
-
async def xnxx_videodl(
|
391 |
-
payload: XnxxLinks,
|
392 |
-
api_key: None = Depends(validate_api_key)
|
393 |
-
):
|
394 |
try:
|
395 |
-
response =
|
396 |
-
result = response
|
397 |
return SuccessResponse(
|
398 |
status="True",
|
399 |
randydev={"results": result}
|
@@ -410,8 +398,8 @@ async def instagramdl(
|
|
410 |
api_key: None = Depends(validate_api_key)
|
411 |
):
|
412 |
try:
|
413 |
-
response =
|
414 |
-
result = response
|
415 |
return SuccessResponse(
|
416 |
status="True",
|
417 |
randydev={"results": result}
|
|
|
324 |
return 'Identifikasi Gagal'
|
325 |
|
326 |
@app.post("/akeno/toanime", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
327 |
+
async def toanime_endpoint(file: UploadFile = File(...)):
|
|
|
|
|
|
|
328 |
file_path = f"./uploads/{file.filename}"
|
329 |
try:
|
330 |
with open(file_path, "wb") as f:
|
|
|
348 |
os.remove(file_path)
|
349 |
|
350 |
@app.post("/akeno/xnxxsearch", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
351 |
+
async def xnxx_search(payload: XnxxSearch):
|
|
|
|
|
|
|
352 |
try:
|
353 |
+
response = requests.get(f"https://tools.betabotz.eu.org/xnxxsearch?q={payload.query}").json()
|
354 |
+
result = response.get("result", {})
|
355 |
return SuccessResponse(
|
356 |
status="True",
|
357 |
randydev={"results": result}
|
|
|
363 |
)
|
364 |
|
365 |
@app.post("/akeno/xnxx-dl", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
366 |
+
async def xnxx_download(payload: XnxxLinks):
|
|
|
|
|
|
|
367 |
try:
|
368 |
+
response = requests.get(f"https://tools.betabotz.eu.org/xnxxdl?url={payload.link}").json()
|
369 |
+
result = response.get("result", {})
|
370 |
return SuccessResponse(
|
371 |
status="True",
|
372 |
randydev={"results": result}
|
|
|
378 |
)
|
379 |
|
380 |
@app.post("/akeno/xnxx-videodl", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
381 |
+
async def xnxx_videodl(payload: XnxxLinks):
|
|
|
|
|
|
|
382 |
try:
|
383 |
+
response = requests.get(f"https://tools.betabotz.eu.org/xvideosdl?url={payload.link}").json()
|
384 |
+
result = response.get("result", {})
|
385 |
return SuccessResponse(
|
386 |
status="True",
|
387 |
randydev={"results": result}
|
|
|
398 |
api_key: None = Depends(validate_api_key)
|
399 |
):
|
400 |
try:
|
401 |
+
response = requests.get(f"https://tools.betabotz.eu.org/instagramdl?url={payload.link}").json()
|
402 |
+
result = response.get("result", {})
|
403 |
return SuccessResponse(
|
404 |
status="True",
|
405 |
randydev={"results": result}
|