title: parsing css selector with beautifulsoup
body: <p>I am using the CSS selector to scrape data from the web with the beautifulsoup 4 module. </p>
  
  <p>see sample code: </p>
  
  <pre><code># pull website
  res = requests.get('https://dailystoic.com/epictetus/')
  
  #parse file
  soup = bs4.BeautifulSoup(res.text, 'html.parser')
  
  # CSS selector
  elems = soup.select('body &gt; div.wrap.container &gt; div &gt; main &gt; article &gt; div.entry-content &gt; p:nth-child(1) &gt; em &gt; a:nth-child(3)')
  
  # take content and store in variable
  content = elems[0].text.strip()
  
  # print content
  print(content)
  </code></pre>
  
  <p>I want the html text from the hyperlink. I don't want the URL, but what the hyperlink says.</p>