bcci commited on
Commit
48f0eb9
·
verified ·
1 Parent(s): 9af1ada

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -63,7 +63,7 @@ async def get_markdown_get(request: Request, url: str):
63
  if not full_url.startswith(('http://', 'https://')):
64
  full_url = f"http://{full_url}"
65
 
66
- markdown_output = await convert_html_to_md(await scraper(full_url).)
67
  return PlainTextResponse(markdown_output)
68
  except Exception as e:
69
  raise HTTPException(status_code=500, detail=f"Error processing URL: {e}")
@@ -95,7 +95,7 @@ async def get_markdown_get_stealthy(request: Request, url: str): # Renamed for
95
  if not full_url.startswith(('http://', 'https://')):
96
  full_url = f"http://{full_url}"
97
 
98
- markdown_output = await convert_html_to_md(await stealthy_scraper(full_url).html_content)
99
  return PlainTextResponse(markdown_output)
100
  except Exception as e:
101
  raise HTTPException(status_code=500, detail=f"Error processing URL: {e}")
 
63
  if not full_url.startswith(('http://', 'https://')):
64
  full_url = f"http://{full_url}"
65
 
66
+ markdown_output = await convert_html_to_md(await scraper(full_url))
67
  return PlainTextResponse(markdown_output)
68
  except Exception as e:
69
  raise HTTPException(status_code=500, detail=f"Error processing URL: {e}")
 
95
  if not full_url.startswith(('http://', 'https://')):
96
  full_url = f"http://{full_url}"
97
 
98
+ markdown_output = await convert_html_to_md(await stealthy_scraper(full_url))
99
  return PlainTextResponse(markdown_output)
100
  except Exception as e:
101
  raise HTTPException(status_code=500, detail=f"Error processing URL: {e}")