import trafilatura def scrape_url(url): downloaded = trafilatura.fetch_url(url) if downloaded: text = trafilatura.extract(downloaded, include_links=False, include_formatting=False) return text if text else "No content could be extracted from the URL" return "Failed to download the URL"