title: save output into dataframe with beautifulsoup
body: <p>I'm new to web scraping. I'm trying to scrape data from the news site.</p>
  <p>I have this code:</p>
  <pre><code>from bs4 import BeautifulSoup as soup
  import pandas as pd
  import requests
  
  detik_url = &quot;https://news.detik.com/indeks/2&quot;
  detik_url
  
  html = requests.get(detik_url)
  
  bsobj = soup(html.content, 'lxml')
  bsobj
  
  for link in bsobj.findAll(&quot;h3&quot;):
    print(&quot;Headline : {}&quot;.format(link.text.strip()))
  
  links = []
  for news in bsobj.findAll('article',{'class':'list-content__item'}):
    links.append(news.a['href'])
  
  for link in links:
    page = requests.get(link)
    bsobj = soup(page.content)
    div = bsobj.findAll('div',{'class':'detail__body itp_bodycontent_wrapper'})
    for p in div:
      print(p.find('p').text.strip())
  </code></pre>
  <p>How do I utilize a Pandas Dataframe to store the obtained content into a CSV file?</p>