master
Raw Download raw file
 1from readability import Document
 2from html2text import HTML2Text as h2t
 3import requests
 4import sys
 5
 6
 7def main ():
 8  r = requests.get(sys.argv[1])
 9  d = Document(r.text)
10  md = h2t().handle(d.summary())
11  sys.stdout.write(md)
12
13if __name__ == "__main__":
14  main()