Spaces:
Sleeping
Sleeping
File size: 361 Bytes
334ff37 | 1 2 3 4 5 6 7 8 9 10 | import requests
def scrape_company(url: str) -> str:
try:
# Using Jina AI reader to bypass JS blocking and get clean markdown
res = requests.get(f"https://r.jina.ai/{url}", timeout=15)
return res.text[:800] if res.status_code == 200 else "No description found."
except Exception as e:
return f"Scraping error: {str(e)}"
|