I get the IndentationError: expected an indented block. I was trying to copy all the contents form webpage to a txt file. Not sure what the error is but in my homework found that indented error occure if there is a combination of space and tabs. Beginning with python can someone help. Thanks in Advance.
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.encode('utf-8'))