import requests from bs4 import BeautifulSoup def scrape_website(url): try: response = requests.get(url) response.raise_for_status() soup = BeautifulSoup(response.content, 'html.parser') return soup.get_text(separator=' ') except Exception as e: return f"Error: Unable to scrape the website. Details: {e}"