title: Web Scraping contents of ::before ::after CSS Psuedo element using BeautifulSoup
body: <p>I'm learning Web Scraping. I would like to know how can we fetch participants count from below element?</p>
  
  <pre><code>&lt;li class="header-hero__stat header-hero__stat--participants"&gt;
     ::before
     "255,590 Participants"
     ::after
  &lt;/li&gt;
  </code></pre>
  
  <p>Code I've tried</p>
  
  <pre><code>soupy = bs(html,'lxml') 
  ul = soupy.find('li',{'class':"header-hero__stats"})
  </code></pre>
  
  <p>returns <code>None</code></p>
  
  <p><a href="https://www.datacamp.com/courses/intermediate-python-for-data-science" rel="nofollow noreferrer">Target page</a></p>