randydev commited on
Commit
6ebf45d
1 Parent(s): da1d286

Upload main.py

Browse files
Files changed (1) hide show
  1. main.py +34 -34
main.py CHANGED
@@ -1161,7 +1161,7 @@ async def sibyl_get_all_banlist():
1161
  }
1162
 
1163
  @app.get("/ryuzaki/blacklist-words")
1164
- def blacklist_words():
1165
  try:
1166
  BLACKLIST_WORDS = BadWordsList()
1167
  results_all = BLACKLIST_WORDS.banned_by_google(file_txt="banned_by_google.txt", storage=True)
@@ -1325,7 +1325,7 @@ async def sibyl_system(
1325
  )
1326
 
1327
  @app.get("/ryuzaki/pypi-search", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1328
- def pypi_search(
1329
  item: TextCustom,
1330
  ):
1331
  try:
@@ -1339,7 +1339,7 @@ def pypi_search(
1339
  randydev={"message": "Error not responding"})
1340
 
1341
  @app.get("/ryuzaki/translate", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1342
- def get_translate(
1343
  item: TranslateCustom,
1344
  ):
1345
  try:
@@ -1358,7 +1358,7 @@ def get_translate(
1358
  randydev={"message": "Error not responding"})
1359
 
1360
  @app.get("/ryuzaki/reverse", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1361
- def google_reverse(
1362
  item: GoogleReverse,
1363
  api_key: None = Depends(validate_api_key)
1364
  ):
@@ -1389,7 +1389,7 @@ def google_reverse(
1389
  return {"status": "false", "message": "Internal server error"}
1390
 
1391
  @app.get("/ryuzaki/ocr", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1392
- def ocr_space_url(
1393
  item: OrcSpaceUrl,
1394
  api_key: None = Depends(validate_api_key)
1395
  ):
@@ -1420,7 +1420,7 @@ def ocr_space_url(
1420
  return "Error parsing the OCR response."
1421
 
1422
  @app.post("/ryuzaki/chatgpt-old", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
1423
- def chatgpt_olds(item: ChatgptCustom):
1424
  try:
1425
  headers = {
1426
  "Accept": "application/json",
@@ -1447,7 +1447,7 @@ def chatgpt_olds(item: ChatgptCustom):
1447
  return SuccessResponse(status="False", randydev={"message": contact_support})
1448
 
1449
  @app.post("/ryuzaki/ai", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1450
- def ryuzaki_ai(
1451
  item: RyuzakiAi,
1452
  api_key: None = Depends(validate_api_key)
1453
  ):
@@ -1467,7 +1467,7 @@ def ryuzaki_ai(
1467
  BingImages = BingClient()
1468
 
1469
  @app.post("/ryuzaki/dall-e-3")
1470
- def bing_dalle(item: BingDalle, api_key: None = Depends(validate_api_key)):
1471
  try:
1472
  set_cookies(
1473
  ".bing.com",
@@ -1494,7 +1494,7 @@ def get_image_urls(query):
1494
  return [response[f"S{i}-Image"] for i in range(1, 5)]
1495
 
1496
  @app.post("/ryuzaki/dalle3xl")
1497
- def dalle_3xl(
1498
  item: Dalle3XL,
1499
  api_key: None = Depends(validate_api_key)
1500
  ):
@@ -1513,7 +1513,7 @@ def dalle_3xl(
1513
  return SuccessResponse(status="False", randydev={"data": contact_support})
1514
 
1515
  @app.post("/ryuzaki/opendalle")
1516
- def open_dalle(
1517
  item: OpenDalle,
1518
  api_key: None = Depends(validate_api_key)
1519
  ):
@@ -1541,7 +1541,7 @@ def open_dalle(
1541
  return SuccessResponse(status="False", randydev={"data": contact_support})
1542
 
1543
  @app.post("/ryuzaki/picsart-pro")
1544
- def Picsart_Pro(
1545
  item: Picsart,
1546
  api_key: None = Depends(validate_api_key)
1547
  ):
@@ -1583,7 +1583,7 @@ def Picsart_Pro(
1583
  return SuccessResponse(status="False", randydev={"data": contact_support})
1584
 
1585
  @app.post("/ryuzaki/anime-styled")
1586
- def Anime_Styled(
1587
  item: AnimeStyled,
1588
  api_key: None = Depends(validate_api_key)
1589
  ):
@@ -1611,7 +1611,7 @@ def Anime_Styled(
1611
  return SuccessResponse(status="False", randydev={"data": contact_support})
1612
 
1613
  @app.post("/ryuzaki/unsplash")
1614
- def image_unsplash(item: GetImageUnsplash):
1615
  url = SOURCE_UNSPLASH_URL
1616
  image_url = f"{url}/?{item.query}/{item.size}"
1617
  try:
@@ -1683,7 +1683,7 @@ async def chatgpt_customs(
1683
  return SuccessResponse(status="False", randydev={"message": str(e)})
1684
 
1685
  @app.post("/ryuzaki/google-ai", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1686
- def v1beta3_google_ai(
1687
  item: ChatgptCustom,
1688
  api_key: None = Depends(validate_api_key)
1689
  ):
@@ -1722,7 +1722,7 @@ async def faceai(item: BetaRags):
1722
  return SuccessResponse(status="False", randydev={"message": str(e)})
1723
 
1724
  @app.post("/ryuzaki/blackbox", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1725
- def blackbox_ai(item: ChatgptCustom):
1726
  try:
1727
  response = send_blackbox_chat(item.query)
1728
  return SuccessResponse(status="True", randydev={"message": response})
@@ -1730,7 +1730,7 @@ def blackbox_ai(item: ChatgptCustom):
1730
  return SuccessResponse(status="False", randydev={"message": str(e)})
1731
 
1732
  @app.post("/ryuzaki/gemini-ai-pro", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1733
- def gemini_pro(item: GeminiPro):
1734
  owner_base = f"""
1735
  Your name is Randy Dev. A kind and friendly AI assistant that answers in
1736
  a short and concise answer. Give short step-by-step reasoning if required.
@@ -1780,7 +1780,7 @@ def gemini_pro(item: GeminiPro):
1780
  return SuccessResponse(status="False", randydev={"message": contact_support})
1781
 
1782
  @app.post("/ryuzaki/v1beta2-google-ai", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1783
- def v1beta2_google_ai(
1784
  item: ChatgptCustom,
1785
  api_key: None = Depends(validate_api_key)
1786
  ):
@@ -1803,7 +1803,7 @@ def v1beta2_google_ai(
1803
  return SuccessResponse(status="False", randydev={"message": internal_error})
1804
 
1805
  @app.post("/ryuzaki/new-monitor", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1806
- def new_monitor(
1807
  item: NewMonitor,
1808
  api_key: None = Depends(validate_api_key)
1809
  ):
@@ -1839,7 +1839,7 @@ def new_monitor(
1839
  return {"status": "false", "message": "Error response."}
1840
 
1841
  @app.post("/ryuzaki/get-monitors", response_model=SuccessResponse, responses={422: {"model": ErrorResponse}})
1842
- def getMonitors(
1843
  item: GetMonitorLogs,
1844
  api_key: None = Depends(validate_api_key)
1845
  ):
@@ -1916,7 +1916,7 @@ async def github(item: GithubUsernames):
1916
  return {"status": "false", "message": "Error response."}
1917
 
1918
  @app.get("/ryuzaki/webshot", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1919
- def webshot(item: Webshot):
1920
  try:
1921
  required_url = f"https://mini.s-shot.ru/{item.quality}/{item.type_mine}/{item.pixels}/{item.cast}/?{item.url}"
1922
  return {
@@ -1929,7 +1929,7 @@ def webshot(item: Webshot):
1929
  return {"status": "false", "message": "Error response."}
1930
 
1931
  @app.get("/ryuzaki/chatbot", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1932
- def chatbot(item: ChatBots):
1933
  api_url = b64decode("aHR0cHM6Ly9hcGkuc2Fmb25lLmRldi9jaGF0Ym90").decode("utf-8")
1934
  params = {
1935
  "query": item.query,
@@ -1953,7 +1953,7 @@ def chatbot(item: ChatBots):
1953
  return {"status": "false", "message": "Error response."}
1954
 
1955
  @app.get("/ryuzaki/llama", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
1956
- def get_llama(item: ChatgptCustom):
1957
  api_url = SOURCE_WHAT_GAY_URL
1958
  params = {"query": item.query}
1959
  x = requests.get(f"{api_url}/llama", params=params)
@@ -1967,7 +1967,7 @@ def get_llama(item: ChatgptCustom):
1967
  return SuccessResponse(status="False", randydev={"message": contact_support})
1968
 
1969
  @app.get("/ryuzaki/waifu", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1970
- def waifu_pics(item: WaifuPics):
1971
  waifu_api = f"{SOURCE_WAIFU_URL}/{item.types}"
1972
  waifu_param = f"{waifu_api}/{item.category}"
1973
 
@@ -1999,7 +1999,7 @@ def waifu_pics(item: WaifuPics):
1999
  return {"status": "false", "message": "Error response."}
2000
 
2001
  @app.get("/ryuzaki/rayso", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
2002
- def make_rayso(item: MakeRayso):
2003
  trans = SyncTranslator()
2004
  api_url = b64decode("aHR0cHM6Ly9hcGkuc2Fmb25lLm1lL3JheXNv").decode("utf-8")
2005
  if item.auto_translate:
@@ -2056,7 +2056,7 @@ def make_rayso(item: MakeRayso):
2056
  return {"status": "false", "message": "Error response"}
2057
 
2058
  @app.get("/ryuzaki/ipcheck")
2059
- def whois_ip_address(ip_address: str=None):
2060
  apikey = kc("M0QwN0UyRUFBRjU1OTQwQUY0NDczNEMzRjJBQzdDMUE=").decode("utf-8")
2061
  location_link = "https"
2062
  location_api = "api.ip2location.io"
@@ -2103,7 +2103,7 @@ def whois_ip_address(ip_address: str=None):
2103
  return {"status": "false", "message": "Invalid ip address"}
2104
 
2105
  @app.get("/ryuzaki/tiktok_douyin", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
2106
- def tiktok_douyin(item: TiktokDownloader):
2107
  response = requests.get(f"{SOURCE_TIKTOK_WTF_URL}={item.tiktok_url}")
2108
  if response.status_code != 200:
2109
  return "Internal server error"
@@ -2127,7 +2127,7 @@ def tiktok_douyin(item: TiktokDownloader):
2127
  return {"status": "false", "message": "Error request"}
2128
 
2129
  @app.get("/ryuzaki/tiktok", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
2130
- def tiktok_downloader(item: TiktokBeta):
2131
  api_devs = SOURCE_TIKTOK_TECH_URL
2132
  parameter = f"tiktok?url={item.tiktok_url}"
2133
  api_url = f"{api_devs}/{parameter}"
@@ -2157,7 +2157,7 @@ def tiktok_downloader(item: TiktokBeta):
2157
  return {"status": "false", "message": "Invalid Link"}
2158
 
2159
  @app.get("/ryuzaki/mediafire")
2160
- def mediafire(item: DownloadLink):
2161
  try:
2162
  down_link = str(item.link)
2163
  mid = down_link.split('/', 5)
@@ -2196,7 +2196,7 @@ def mediafire(item: DownloadLink):
2196
  return {'status': 'false', 'message': 'Invalid Link'}
2197
 
2198
  @app.get("/ryuzaki/gdrive")
2199
- def gdrive(item: DownloadLink):
2200
  try:
2201
  down = link.split('/', 6)
2202
  url = f'https://drive.google.com/uc?export=download&id={down[5]}'
@@ -2228,7 +2228,7 @@ def gdrive(item: DownloadLink):
2228
  return {'status': 'false', 'message': 'Invalid Link'}
2229
 
2230
  @app.get("/ryuzaki/anonfiles")
2231
- def anonfiles(item: DownloadLink):
2232
  try:
2233
  r = requests.get(item.link)
2234
  soup = BeautifulSoup(r.content, "html.parser")
@@ -2243,7 +2243,7 @@ def anonfiles(item: DownloadLink):
2243
  return "{'status': 'false', 'message': 'Invalid Link'}"
2244
 
2245
  @app.get("/ryuzaki/filechan")
2246
- def filechan(item: DownloadLink):
2247
  try:
2248
  r = requests.get(item.link)
2249
  soup = BeautifulSoup(r.content, "html.parser")
@@ -2258,7 +2258,7 @@ def filechan(item: DownloadLink):
2258
  return {'status': 'false', 'message': 'Invalid Link'}
2259
 
2260
  @app.get("/ryuzaki/letsupload")
2261
- def letsupload(item: DownloadLink):
2262
  try:
2263
  r = requests.get(item.link)
2264
  soup = BeautifulSoup(r.content, "html.parser")
@@ -2273,7 +2273,7 @@ def letsupload(item: DownloadLink):
2273
  return {'status': 'false', 'message': 'Invalid Link'}
2274
 
2275
  @app.get("/ryuzaki/megaupload")
2276
- def megaupload(item: DownloadLink):
2277
  try:
2278
  r = requests.get(item.link)
2279
  soup = BeautifulSoup(r.content, "html.parser")
@@ -2288,7 +2288,7 @@ def megaupload(item: DownloadLink):
2288
  return {'status': 'false', 'message': 'Invalid Link'}
2289
 
2290
  @app.get("/ryuzaki/myfile")
2291
- def myfile(item: DownloadLink):
2292
  try:
2293
  r = requests.get(item.link)
2294
  soup = BeautifulSoup(r.content, "html.parser")
 
1161
  }
1162
 
1163
  @app.get("/ryuzaki/blacklist-words")
1164
+ async def blacklist_words():
1165
  try:
1166
  BLACKLIST_WORDS = BadWordsList()
1167
  results_all = BLACKLIST_WORDS.banned_by_google(file_txt="banned_by_google.txt", storage=True)
 
1325
  )
1326
 
1327
  @app.get("/ryuzaki/pypi-search", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1328
+ async def pypi_search(
1329
  item: TextCustom,
1330
  ):
1331
  try:
 
1339
  randydev={"message": "Error not responding"})
1340
 
1341
  @app.get("/ryuzaki/translate", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1342
+ async def get_translate(
1343
  item: TranslateCustom,
1344
  ):
1345
  try:
 
1358
  randydev={"message": "Error not responding"})
1359
 
1360
  @app.get("/ryuzaki/reverse", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1361
+ async def google_reverse(
1362
  item: GoogleReverse,
1363
  api_key: None = Depends(validate_api_key)
1364
  ):
 
1389
  return {"status": "false", "message": "Internal server error"}
1390
 
1391
  @app.get("/ryuzaki/ocr", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1392
+ async def ocr_space_url(
1393
  item: OrcSpaceUrl,
1394
  api_key: None = Depends(validate_api_key)
1395
  ):
 
1420
  return "Error parsing the OCR response."
1421
 
1422
  @app.post("/ryuzaki/chatgpt-old", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
1423
+ async def chatgpt_olds(item: ChatgptCustom):
1424
  try:
1425
  headers = {
1426
  "Accept": "application/json",
 
1447
  return SuccessResponse(status="False", randydev={"message": contact_support})
1448
 
1449
  @app.post("/ryuzaki/ai", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1450
+ async def ryuzaki_ai(
1451
  item: RyuzakiAi,
1452
  api_key: None = Depends(validate_api_key)
1453
  ):
 
1467
  BingImages = BingClient()
1468
 
1469
  @app.post("/ryuzaki/dall-e-3")
1470
+ async def bing_dalle(item: BingDalle, api_key: None = Depends(validate_api_key)):
1471
  try:
1472
  set_cookies(
1473
  ".bing.com",
 
1494
  return [response[f"S{i}-Image"] for i in range(1, 5)]
1495
 
1496
  @app.post("/ryuzaki/dalle3xl")
1497
+ async def dalle_3xl(
1498
  item: Dalle3XL,
1499
  api_key: None = Depends(validate_api_key)
1500
  ):
 
1513
  return SuccessResponse(status="False", randydev={"data": contact_support})
1514
 
1515
  @app.post("/ryuzaki/opendalle")
1516
+ async def open_dalle(
1517
  item: OpenDalle,
1518
  api_key: None = Depends(validate_api_key)
1519
  ):
 
1541
  return SuccessResponse(status="False", randydev={"data": contact_support})
1542
 
1543
  @app.post("/ryuzaki/picsart-pro")
1544
+ async def Picsart_Pro(
1545
  item: Picsart,
1546
  api_key: None = Depends(validate_api_key)
1547
  ):
 
1583
  return SuccessResponse(status="False", randydev={"data": contact_support})
1584
 
1585
  @app.post("/ryuzaki/anime-styled")
1586
+ async def Anime_Styled(
1587
  item: AnimeStyled,
1588
  api_key: None = Depends(validate_api_key)
1589
  ):
 
1611
  return SuccessResponse(status="False", randydev={"data": contact_support})
1612
 
1613
  @app.post("/ryuzaki/unsplash")
1614
+ async def image_unsplash(item: GetImageUnsplash):
1615
  url = SOURCE_UNSPLASH_URL
1616
  image_url = f"{url}/?{item.query}/{item.size}"
1617
  try:
 
1683
  return SuccessResponse(status="False", randydev={"message": str(e)})
1684
 
1685
  @app.post("/ryuzaki/google-ai", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1686
+ async def v1beta3_google_ai(
1687
  item: ChatgptCustom,
1688
  api_key: None = Depends(validate_api_key)
1689
  ):
 
1722
  return SuccessResponse(status="False", randydev={"message": str(e)})
1723
 
1724
  @app.post("/ryuzaki/blackbox", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1725
+ async def blackbox_ai(item: ChatgptCustom):
1726
  try:
1727
  response = send_blackbox_chat(item.query)
1728
  return SuccessResponse(status="True", randydev={"message": response})
 
1730
  return SuccessResponse(status="False", randydev={"message": str(e)})
1731
 
1732
  @app.post("/ryuzaki/gemini-ai-pro", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1733
+ async def gemini_pro(item: GeminiPro):
1734
  owner_base = f"""
1735
  Your name is Randy Dev. A kind and friendly AI assistant that answers in
1736
  a short and concise answer. Give short step-by-step reasoning if required.
 
1780
  return SuccessResponse(status="False", randydev={"message": contact_support})
1781
 
1782
  @app.post("/ryuzaki/v1beta2-google-ai", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1783
+ async def v1beta2_google_ai(
1784
  item: ChatgptCustom,
1785
  api_key: None = Depends(validate_api_key)
1786
  ):
 
1803
  return SuccessResponse(status="False", randydev={"message": internal_error})
1804
 
1805
  @app.post("/ryuzaki/new-monitor", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1806
+ async def new_monitor(
1807
  item: NewMonitor,
1808
  api_key: None = Depends(validate_api_key)
1809
  ):
 
1839
  return {"status": "false", "message": "Error response."}
1840
 
1841
  @app.post("/ryuzaki/get-monitors", response_model=SuccessResponse, responses={422: {"model": ErrorResponse}})
1842
+ async def getMonitors(
1843
  item: GetMonitorLogs,
1844
  api_key: None = Depends(validate_api_key)
1845
  ):
 
1916
  return {"status": "false", "message": "Error response."}
1917
 
1918
  @app.get("/ryuzaki/webshot", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1919
+ async def webshot(item: Webshot):
1920
  try:
1921
  required_url = f"https://mini.s-shot.ru/{item.quality}/{item.type_mine}/{item.pixels}/{item.cast}/?{item.url}"
1922
  return {
 
1929
  return {"status": "false", "message": "Error response."}
1930
 
1931
  @app.get("/ryuzaki/chatbot", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1932
+ async def chatbot(item: ChatBots):
1933
  api_url = b64decode("aHR0cHM6Ly9hcGkuc2Fmb25lLmRldi9jaGF0Ym90").decode("utf-8")
1934
  params = {
1935
  "query": item.query,
 
1953
  return {"status": "false", "message": "Error response."}
1954
 
1955
  @app.get("/ryuzaki/llama", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
1956
+ async def get_llama(item: ChatgptCustom):
1957
  api_url = SOURCE_WHAT_GAY_URL
1958
  params = {"query": item.query}
1959
  x = requests.get(f"{api_url}/llama", params=params)
 
1967
  return SuccessResponse(status="False", randydev={"message": contact_support})
1968
 
1969
  @app.get("/ryuzaki/waifu", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
1970
+ async def waifu_pics(item: WaifuPics):
1971
  waifu_api = f"{SOURCE_WAIFU_URL}/{item.types}"
1972
  waifu_param = f"{waifu_api}/{item.category}"
1973
 
 
1999
  return {"status": "false", "message": "Error response."}
2000
 
2001
  @app.get("/ryuzaki/rayso", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
2002
+ async def make_rayso(item: MakeRayso):
2003
  trans = SyncTranslator()
2004
  api_url = b64decode("aHR0cHM6Ly9hcGkuc2Fmb25lLm1lL3JheXNv").decode("utf-8")
2005
  if item.auto_translate:
 
2056
  return {"status": "false", "message": "Error response"}
2057
 
2058
  @app.get("/ryuzaki/ipcheck")
2059
+ async def whois_ip_address(ip_address: str=None):
2060
  apikey = kc("M0QwN0UyRUFBRjU1OTQwQUY0NDczNEMzRjJBQzdDMUE=").decode("utf-8")
2061
  location_link = "https"
2062
  location_api = "api.ip2location.io"
 
2103
  return {"status": "false", "message": "Invalid ip address"}
2104
 
2105
  @app.get("/ryuzaki/tiktok_douyin", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
2106
+ async def tiktok_douyin(item: TiktokDownloader):
2107
  response = requests.get(f"{SOURCE_TIKTOK_WTF_URL}={item.tiktok_url}")
2108
  if response.status_code != 200:
2109
  return "Internal server error"
 
2127
  return {"status": "false", "message": "Error request"}
2128
 
2129
  @app.get("/ryuzaki/tiktok", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
2130
+ async def tiktok_downloader(item: TiktokBeta):
2131
  api_devs = SOURCE_TIKTOK_TECH_URL
2132
  parameter = f"tiktok?url={item.tiktok_url}"
2133
  api_url = f"{api_devs}/{parameter}"
 
2157
  return {"status": "false", "message": "Invalid Link"}
2158
 
2159
  @app.get("/ryuzaki/mediafire")
2160
+ async def mediafire(item: DownloadLink):
2161
  try:
2162
  down_link = str(item.link)
2163
  mid = down_link.split('/', 5)
 
2196
  return {'status': 'false', 'message': 'Invalid Link'}
2197
 
2198
  @app.get("/ryuzaki/gdrive")
2199
+ async def gdrive(item: DownloadLink):
2200
  try:
2201
  down = link.split('/', 6)
2202
  url = f'https://drive.google.com/uc?export=download&id={down[5]}'
 
2228
  return {'status': 'false', 'message': 'Invalid Link'}
2229
 
2230
  @app.get("/ryuzaki/anonfiles")
2231
+ async def anonfiles(item: DownloadLink):
2232
  try:
2233
  r = requests.get(item.link)
2234
  soup = BeautifulSoup(r.content, "html.parser")
 
2243
  return "{'status': 'false', 'message': 'Invalid Link'}"
2244
 
2245
  @app.get("/ryuzaki/filechan")
2246
+ async def filechan(item: DownloadLink):
2247
  try:
2248
  r = requests.get(item.link)
2249
  soup = BeautifulSoup(r.content, "html.parser")
 
2258
  return {'status': 'false', 'message': 'Invalid Link'}
2259
 
2260
  @app.get("/ryuzaki/letsupload")
2261
+ async def letsupload(item: DownloadLink):
2262
  try:
2263
  r = requests.get(item.link)
2264
  soup = BeautifulSoup(r.content, "html.parser")
 
2273
  return {'status': 'false', 'message': 'Invalid Link'}
2274
 
2275
  @app.get("/ryuzaki/megaupload")
2276
+ async def megaupload(item: DownloadLink):
2277
  try:
2278
  r = requests.get(item.link)
2279
  soup = BeautifulSoup(r.content, "html.parser")
 
2288
  return {'status': 'false', 'message': 'Invalid Link'}
2289
 
2290
  @app.get("/ryuzaki/myfile")
2291
+ async def myfile(item: DownloadLink):
2292
  try:
2293
  r = requests.get(item.link)
2294
  soup = BeautifulSoup(r.content, "html.parser")