title: How to scrape address (comma separated text) using Beautifulsoup in python
body: <p>I am trying to scrape address from the below link:</p>
  <pre><code>https://www.yelp.com/biz/rollin-phatties-houston
  </code></pre>
  <p>But I am getting only the first value of the address (i.e.: <code>1731 Westheimer Rd</code>) out of complete address which is separated by a comma:</p>
  <pre><code>1731 Westheimer Rd, Houston, TX 77098
  </code></pre>
  <p>Can anyone help me out in this, please find my code below:</p>
  <pre><code>import bs4 as bs
  import urllib.request as url
  
  source = url.urlopen('https://www.yelp.com/biz/rollin-phatties-houston')
  soup = bs.BeautifulSoup(source, 'html.parser')
  
  mains = soup.find_all(&quot;div&quot;, {&quot;class&quot;: &quot;secondaryAttributes__09f24__3db5x arrange-unit__09f24__1gZC1 border-color--default__09f24__R1nRO&quot;})
  main = mains[0] #First item of mains
  
  address = []
  for main in mains:
      try:       
          address.append(main.address.find(&quot;p&quot;).text)
      except:
          address.append(&quot;&quot;)
  
  print(address)
  # 1731 Westheimer Rd
  </code></pre>