title: save printed results from a loop to a dataframe
body: <p>How can I save loops from a print in a for loop to a dataframe?</p>
  
  <p>Code I want to save</p>
  
  <pre><code>for div in soup.select('[id^=post_message]'):
    print(div.get_text("\n", strip=True))
  </code></pre>