Pythonを使ってウェブサイトからテキストコンテンツを抽出するには、requestsライブラリと一緒にBeautifulSoupライブラリを使うことができます。以下は、ウェブサイトからすべてのテキストを抽出する方法を示す例です：

```python
import requests
from bs4 import BeautifulSoup

# Make a request to the website
url = 'https://www.example.com'
response = requests.get(url)

# Check if the request was successful
if response.status_code == 200:
    # Parse the HTML content of the page
    soup = BeautifulSoup(response.content, 'html.parser')

    # Find all the text in the page
    text = soup.get_text()
    
    # Print the extracted text
    print(text)
else:
    print(f'Request failed with status code {response.status_code}')

```

このコードは`requests.get`関数を使ってWebサイトにGETリクエストを行い、次に`BeautifulSoup`ライブラリを使ってページのHTMLコンテンツを解析し、すべてのテキストを抽出している。最後に、抽出されたテキストを表示する。
To extract textual content from a website using Python, you can use the BeautifulSoup library along with the requests library. Here is an example that demonstrates how to extract all the text from a website:

```python
import requests
from bs4 import BeautifulSoup

# Make a request to the website
url = 'https://www.example.com'
response = requests.get(url)

# Check if the request was successful
if response.status_code == 200:
    # Parse the HTML content of the page
    soup = BeautifulSoup(response.content, 'html.parser')

    # Find all the text in the page
    text = soup.get_text()
    
    # Print the extracted text
    print(text)
else:
    print(f'Request failed with status code {response.status_code}')

```

This code uses the `requests.get` function to make a GET request to the website, and then it uses the `BeautifulSoup` library to parse the HTML content of the page and extract all the text. Finally, it prints the extracted text.