title: Python print individual anchor text and href on individual lines
body: <p>I have the following Python script that scrapes all anchor text and href values from a page:</p>
  <pre><code>from requests_html import HTMLSession
  from urllib.request import urlopen
  from bs4 import BeautifulSoup
  import requests
  
  url=&quot;https://www.mydomain.co.uk/path-here&quot;
  
  session = HTMLSession()
  r = session.get(url)
  
  b  = requests.get(url)
  soup = BeautifulSoup(b.text, &quot;lxml&quot;)
  
  for link in soup.find_all('a'):
      print(link.get('href'))
  
  for tag in soup.find_all('a'):
      print (tag.text)
  </code></pre>
  <p>It works fine but i want it to print the anchor text (plus a dash) and the corresponding href value on the same line e.g:</p>
  <pre><code>get quote - https://www.mydomain.co.uk/get-quote
  contact us - https://www.mydomain.co.uk/contact us
  </code></pre>
  <p>Is this possible?</p>
  <p>Thanks</p>