title: Beautifoul soup: ho extract <p> content of a parent balise
body: <p>in a text file, each item have the same structure so I would like to parse it with beautiful soup.
  An extract:</p>
  <pre><code>data = &quot;&quot;&quot;
          &lt;article id=&quot;1&quot; title=&quot;Titre 1&quot; sourcename=&quot;Le monde&quot; about=&quot;Fillon|Macron&quot;&gt;
          &lt;p type=&quot;title&quot;&gt;Sub title1&lt;/p&gt;
          &lt;p&gt;xxxxxxxxxxxxxxxxxxxxxxxxx&lt;/p&gt;
          &lt;/article&gt;
          
          &lt;article id=&quot;2&quot; title=&quot;Titre 2&quot; sourcename=&quot;La Croix&quot; about=&quot;Le Pen|Mélanchon&quot;&gt;
          &lt;p type=&quot;title&quot;&gt;Sub title2&lt;/p&gt;
          &lt;p&gt;yyyyyyyyyyyyyyyyyyyyyyyyy&lt;/p&gt;
          &lt;/article&gt;
          &quot;&quot;&quot;
  
  from bs4 import BeautifulSoup
  soup = BeautifulSoup(data, 'html.parser')
  
  for text in soup.find_all('article'):
      print(text['id'])
      print(list(text.findChildren())) 
      print(list(text.children))
  </code></pre>
  <p>I want to extract &quot;p&quot; balise content:
  For each article, I would like to get a list of list (to convert to Df panda).
  For example:</p>
  <pre><code>[
  [1, &quot;Sub title2&quot;, &quot;xxxxxxxxxxxxx&quot;],
   2, &quot;Sub title2&quot;, &quot;yyyyyyyyyyyyy&quot;],
  ]
  </code></pre>
  <p>Thanks a lot.
  Théo</p>