#!/usr/bin/env python3
"""Debug: check neirong div structure"""
import requests
from bs4 import BeautifulSoup

url = 'http://www.zoucheng.gov.cn/art/2023/9/4/art_24376_2795602.html'
r = requests.get(url, headers={'User-Agent': 'Mozilla/5.0'}, timeout=30)
r.encoding = 'utf-8'
soup = BeautifulSoup(r.text, 'html.parser')

content_div = soup.find('div', class_='neirong')
raw = str(content_div)
print(f'RAW neirong HTML length: {len(raw)}')
print(f'RAW start: {raw[:1500]}')
print()
print(f'RAW end (last 1000): {raw[-1000:]}')
