Spaces:
Paused
Paused
Update main.py
Browse files66 unmodified lines67686970717266 unmodified linesextracted_data = json.loads(result.extracted_content)return CrawlerOutput(data=extracted_data)@app.get("/test")async def test(api_key: str = Depends(verify_api_key)):result = await simple_crawl()66 unmodified lines67686970717273747576777879808166 unmodified linesextracted_data = json.loads(result.extracted_content)return CrawlerOutput(data=extracted_data)@app.get("/basic-crawl")async def test_url(api_key: str = Depends(verify_api_key), url: str = Query(..., description="URL to crawl")):"""A test endpoint that takes a URL as input and returns the result of crawling it."""result = await simple_crawl(url=url)return {"markdown": result.markdown}@app.get("/test")async def test(api_key: str = Depends(verify_api_key)):result = await simple_crawl()
main.py+9