Hacker News Classics on a single Jekyll website (to be converted to an EBook)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
196 B

import sys
from newspaper import Article
url = sys.argv[1].strip()
a = Article(url, language='en', keep_article_html=True, http_success_only=False)
a.download()
a.parse()
print(a.article_html)