Newspaper: Article scraping & curation ======================================== .. image:: https://badge.fury.io/py/newspaper.svg :target: http://badge.fury.io/py/newspaper :alt: Latest version Inspired by `requests`_ for its simplicity and powered by `lxml`_ for its speed: "Newspaper is an amazing python library for extracting & curating articles." -- `tweeted by`_ Kenneth Reitz, Author of `requests`_ "Newspaper delivers Instapaper style article extraction." -- `The Changelog`_ .. _`tweeted by`: https://twitter.com/kennethreitz/status/419520678862548992 .. _`The Changelog`: http://thechangelog.com/newspaper-delivers-instapaper-style-article-extraction/ **This is newspaper's Python2 branch**! Or, view the `Python3 branch`_ .. _`Python3 branch`: https://github.com/codelucas/newspaper/tree/master A Glance: --------- .. code-block:: pycon >>> from newspaper import Article >>> url = u'http://fox13now.com/2013/12/30/new-year-new-laws-obamacare-pot-guns-and-drones/' >>> article = Article(url) .. code-block:: pycon >>> article.download() >>> article.html u'