import urllib2
import html2text
print 'Please input URL with the text you want to analyze: '
url = raw_input()
page = urllib2.urlopen(url)
html_content = page.read()
print html_content
rendered_content = html2text.html2text(html_content)
f = open('file_text.txt', 'w')
f.write(rendered_content)
f.close()
试图将文件保存到我的电脑。我知道ASCII
有问题答案 0 :(得分:0)