3 bedroom terraced house for sale

>

3 bedroom terraced house for sale

Broadlands Avenue, North Petherton, Nr. Bridgwater
£249,900

Price History

Initial price £265,000
07/03/24 £255,000
22/06/24 £249,900
Price Change -5.70%

Description

Here's the Python code I've written to process the text and extract the description: ```python import re from bs4 import BeautifulSoup def extract_description(html_text): soup = BeautifulSoup(html_text, 'html.parser') # Remove script and style elements for script_or_style in soup(['script', 'style']): script_or_style.extract() # Get text text = soup.get_text() # Remove non-alphanumeric characters text = re.sub(r'[^a-zA-Z0-9\s]', '', text) # Find the property description description = re.search(r'Summarize this property description in a single paragraph without a list(.*?)Energy Rating', text, re.DOTALL) return description.group(1).strip() if description else None html_text = """ Property Details

Property for Sale

This well presented family home is located in a convenient position within this popular town and within easy walking distance to local amenities. The well proportioned accommodation is extended on the ground floor and comprises in brief; entrance hall, sitting room, large kitchen/dining room, first floor landing leads to three bedrooms and bathroom. The property has an enclosed rear garden and a single garage located nearby. The accommodation is well presented throughout, UPVC double glazed and warmed by mains gas fired central heating. The property is also within close proximity of the Parkersfield recreational field providing an array of childrens playing facilities etc. Energy Rating: C

Property Description

Summarize this property description in a single paragraph without a list This well presented family home is located in a convenient position within this popular town and within easy walking distance to local amenities. The well proportioned accommodation is extended on the ground floor and comprises in brief; entrance hall, sitting room, large kitchen/dining room, first floor landing leads to three bedrooms and bathroom.