title: Extracting the Address tag from HTML using BeautifulSoup
body: <p>Can't seem to string the following HTML:</p>
  <pre><code>[&lt;address class=&quot;styles_address__zrPvy&quot;&gt;&lt;svg class=&quot;styles_addressIcon__3Pu3L&quot; height=&quot;42&quot; viewbox=&quot;0 0 32 42&quot; width=&quot;32&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;&lt;path d=&quot;M14.381 41.153C2.462 23.873.25 22.1.25 15.75.25 7.051 7.301 0 16 0s15.75 7.051 15.75 15.75c0 6.35-2.212 8.124-14.131 25.403a1.97 1.97 0 01-3.238 0zM16 22.313a6.562 6.562 0 100-13.125 6.562 6.562 0 000 13.124z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Level 1 44 Market Street&lt;!-- --&gt;, &lt;!-- --&gt;Sydney&lt;/address&gt;]
  </code></pre>
  <p>The &quot;title&quot; is working fine but the &quot;address&quot; is not extracting.</p>
  <pre><code>path = &quot;C:\\Users\\mpeter\\Downloads\\lksd\\&quot;
  
  titleList = []
  
  for infile in glob.glob(os.path.join(path, &quot;*.html&quot;)):
      markup = (infile)
      soup = BeautifulSoup(open(markup, &quot;r&quot;).read(), 'lxml')
      title = soup.find_all(&quot;title&quot;)
      title = soup.title.string
      titleList.append(title)
      
  streetAddressList = []
  
  for infile in glob.glob(os.path.join(path, &quot;*.html&quot;)):
      markup = (infile)
      soup = BeautifulSoup(open(markup, &quot;r&quot;).read(), 'lxml')
      address = soup.find_all(&quot;address&quot;, class_={&quot;styles_address__zrPvy&quot;})
      address = soup.address.string
      streetAddressList.append(address)
    
  with open('output2.csv', 'w') as myfile:
     writer = csv.writer(myfile)
     writer.writerows((titleList, streetAddressList))
  </code></pre>
  <p>When I take out the address = soup.address.string it works but extracts the whole Element.</p>