Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -384,13 +384,6 @@ async def hapyymod(q):
|
|
384 |
res.append({"title": title, "link": link, "thumb": thumb})
|
385 |
return {"status": 200, "creator": "@xtdevs", "result": res}
|
386 |
|
387 |
-
def search_pornwhite_videos(query):
|
388 |
-
images = _search_porn(query)
|
389 |
-
data = []
|
390 |
-
for image in images:
|
391 |
-
data.append(_scraper_porn(image))
|
392 |
-
return data
|
393 |
-
|
394 |
def _scraper_porn(url):
|
395 |
response = requests.get(url)
|
396 |
response.raise_for_status()
|
@@ -420,6 +413,13 @@ def _search_porn(query):
|
|
420 |
data.append(href)
|
421 |
return data
|
422 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
423 |
async def search_porn_images(query):
|
424 |
data = []
|
425 |
try:
|
@@ -457,10 +457,10 @@ async def pornowhite_(query: str):
|
|
457 |
status="True",
|
458 |
randydev={"results": response}
|
459 |
)
|
460 |
-
except:
|
461 |
return SuccessResponse(
|
462 |
status="False",
|
463 |
-
randydev={"error": "Error fucking"}
|
464 |
)
|
465 |
|
466 |
@app.get("/akeno/happymod", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
|
|
384 |
res.append({"title": title, "link": link, "thumb": thumb})
|
385 |
return {"status": 200, "creator": "@xtdevs", "result": res}
|
386 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
387 |
def _scraper_porn(url):
|
388 |
response = requests.get(url)
|
389 |
response.raise_for_status()
|
|
|
413 |
data.append(href)
|
414 |
return data
|
415 |
|
416 |
+
def search_pornwhite_videos(query):
|
417 |
+
images = _search_porn(query)
|
418 |
+
data = []
|
419 |
+
for image in images:
|
420 |
+
data.append(_scraper_porn(image))
|
421 |
+
return data
|
422 |
+
|
423 |
async def search_porn_images(query):
|
424 |
data = []
|
425 |
try:
|
|
|
457 |
status="True",
|
458 |
randydev={"results": response}
|
459 |
)
|
460 |
+
except Exception as e:
|
461 |
return SuccessResponse(
|
462 |
status="False",
|
463 |
+
randydev={"error": f"Error fucking: {e}"}
|
464 |
)
|
465 |
|
466 |
@app.get("/akeno/happymod", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|