请用Python编写一个简单的爬虫程序，功能是从指定网页上抓取一个特定信息，并将其打印出来
user
import requests
from bs4 import BeautifulSoup

def crawl_website(url, target_info_class):
    # 发送HTTP请求
    response = requests.get(url)
    response.encoding = 'utf-8'
    
    # 解析HTML内容
    soup = BeautifulSoup(response.text, 'html.parser')
    
    # 查找特定信息
    target_info = soup.find('div', class_=target_info_class)
    
    # 打印信息
    if target_info:
        print(target_info.text.strip())
    else:
        print("未找到指定信息")

# 使用示例
url = 'https://example.com'
target_info_class = 'target-class'
crawl_website(url, target_info_class)
assistant