title: How to Read a WebPage with Python and write to a flat file?
body: <p><strong>Very novice at Python here</strong>. 
  Trying to read the table presented at this page (w/ the current filters set as is) and then write it to a csv file.</p>
  
  <p><a href="http://www65.myfantasyleague.com/2017/options?L=47579&amp;O=243&amp;TEAM=DAL&amp;POS=RB" rel="nofollow noreferrer">http://www65.myfantasyleague.com/2017/options?L=47579&amp;O=243&amp;TEAM=DAL&amp;POS=RB</a></p>
  
  <p>I tried this next approach. It creates the csv file but does not fill it w/ the actual table contents. </p>
  
  <p>Appreciate any help in advance. thanks.</p>
  
  <pre><code>import requests
  import pandas as pd
  
  url = 'http://www65.myfantasyleague.com/2017/optionsL=47579&amp;O=243&amp;TEAM=DAL&amp;POS=RB'
  csv_file='DAL.RB.csv'
  pd.read_html(requests.get(url).content)[-1].to_csv(csv_file)
  </code></pre>