title: Is there an easy way to get the content from a <pre> tag to a pandas dataframe?
body: <p>I've trying to pass the content of a pre tag to a pandas dataframe but i've not been able to, this is what i have so far:</p>
  
  <pre><code>import requests,pandas
  from bs4 import BeautifulSoup
  
  #url
  
  url='http://weather.uwyo.edu/cgi-bin/sounding?region=samer&amp;TYPE=TEXT%3ALIST&amp;YEAR=2019&amp;MONTH=09&amp;FROM=2712&amp;TO=2712&amp;STNM=80222'
  peticion=requests.get(url)
  soup=BeautifulSoup(peticion.content,"html.parser")
  
  #get only the pre content I want
  
  all=soup.select("pre")[0]
  
  #write the content in a text file
  
  with open('sound','w') as f:
      f.write(all.text)
  
  #read it 
  df = pandas.read_csv('sound')
  df
  </code></pre>
  
  <p>I'm getting a not structured dataframe and since I have to do this with several urls I would rather to pass the data directly after the line 12 without the need of writing a file.</p>
  
  <p><a href="https://i.stack.imgur.com/otr3l.png" rel="nofollow noreferrer">this is the dataframe I get</a></p>