NEW: html2text dumps html as plaintext
This commit is contained in:
parent
6ea0be7698
commit
41de1c9b5b
6
py/html2text.py
Normal file
6
py/html2text.py
Normal file
@ -0,0 +1,6 @@
|
||||
from urllib import request
|
||||
import html2text
|
||||
|
||||
url = 'https://duckduckgo.com'
|
||||
text = request.urlopen(url).read().decode('utf8')
|
||||
print(html2text.html2text(text))
|
Loading…
Reference in New Issue
Block a user