title: Getting only some tags <p> using BeautifulSoup from website
body: <p>I try to getting text from only selectet tags, for example:</p>
  <pre><code>&lt;div class=&quot;article-container&quot;&gt;
    &lt;p&gt;tekst 1&lt;/p&gt; &lt;!-- this tag --&gt;
    &lt;p&gt;none&lt;/p&gt;
    &lt;p&gt;tekst 2&lt;/p&gt; &lt;!-- this tag --&gt;
    &lt;p&gt;none&lt;/p&gt;
    &lt;p&gt;tekst 3&lt;/p&gt; &lt;!-- this tag --&gt;
    &lt;p&gt;none&lt;/p&gt;
    &lt;p&gt;tekst 4&lt;/p&gt; &lt;!-- this tag --&gt;
  &lt;/div&gt;
  </code></pre>
  <p>I try get 'tekst 1 tekst 2 tekst 3 tekst 4' (but the text in the tags is completely different 'tekst 1' etc. are just examples),</p>
  <p>My simple python function looks like this:</p>
  <pre><code>def get_article(url):
      page = requests.get(str(url))
      soup = BeautifulSoup(page.text, 'html.parser')
  
      article = soup.find(class_='article-container')
  
      article_only = article.text
  
      return(article_only)
  </code></pre>
  <p>But he returns the whole text. Is there a way to get selected elements as in the above example using BS?</p>