title: how to convert a bs4.element.ResultSet to strings? Python
body: <p>I have a simple code like: </p>
  
  <pre><code>    p = soup.find_all("p")
      paragraphs = []
  
      for x in p:
          paragraphs.append(str(x))
  </code></pre>
  
  <p>I am trying to convert a list I obtained from xml and convert it to string. I want to keep it with it's original tag so I can reuse some text, thus the reason why I am appending it like this. But the list contains over 6000 observations, thus an recursion error occurs because of the str:</p>
  
  <p>"RuntimeError: maximum recursion depth exceeded while calling a Python object"</p>
  
  <p>I read that you can change the max recursion but it's not wise to do so. My next idea was to split the conversion to strings into batches of 500, but I am sure that there has to be a better way to do this. Does anyone have any advice?</p>