I am trying to split up the two address lines into 2 different variables when extracting from the website, but some of the locations only have 1 address. I found that usually there is a comma, colin, or period separating the two address lines. I am extracting all of the locations, and that website is an example of a location that has two address lines. In this case, address 1 would be 2 Hemlock Rd. and the second address would be PO Box 904. In other instances where there is not 2 addresses, address 2 should be empty.

This is the website:<https://www.winmar.ca/find-a-location/#267>

And this is the Python code, as well as the html for the website.

```
location_address1 = soup.select_one(f"[data-id='{num}'] .heading:contains('Address') + p").contents[0].strip()
location_address2 = ','.join(location_address1.split(',|.|:')[1:]) 
<p>
2 Hemlock Rd. PO Box 904
<br>
Corner Brook, NL
<br>
A2H 6J2
</p>

```