title: Python: reading local HTML files, using findall function to extract text into new HTML file
body: <p>im trying to extract elements from a number of different HTML files using findall and put them into a new HTML file. so far i have </p>
  
  <pre><code>news = ['16-10-2017.html', '17-10-2017.html', '18-10-2017.html', '19-10-2017.html', '21-10,2017.html', '22-10-2017.html']
  def extracted():
      raw_news = open(news, 'r', encoding = 'UTF-8')
  </code></pre>
  
  <p>im creating a function that will be able to read these files, extract specific parts so i can put them into a new html file but im not sure if this code for reading the files is correct. how would i be able to extract elements from these files. </p>