title: Scrape Attrs. text within anchor by BeautifulSoup
body: <p>I'm trying to scrape data within an anchor element.</p>
  <p>I tried this, but it didn't work.</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup as bs
  
  url = 'https://example.com'
  
  response= requests.get(url)
  soup = bs(response.content, 'html.parser')
  itemstr= soup.find('table',{'id':'listtable'})
  for anc in itemstr:
      f= anc.find_all('a')
      print(f)
  </code></pre>
  <p>Thank you</p>