title: Copy and paste text from webpage to txt file or csv file
body: <p>I am trying to copy text from a webpage and paste it into a text file. Nothing too fancy but I can't seem to figure out how to do it or find anything online that works. </p>
  
  <pre><code>import requests
  
  url = 'https://seekingalpha.com/article/4166013-t-t-q1-2018-results-earnings-call-transcript?part=single'
  data = requests.get(url)
  
  with open('file.txt','w') as out_f:
     out_f.write(data.text)
  </code></pre>
  
  <p>I get a unicode encode error, \ufeff. Is there a way to just select all, copy, and then paste into a text file? Seems so simple but can't figure it out. </p>
  
  <p>Thank you in advance! </p>