mirror of
https://github.com/codelucas/newspaper.git
synced 2025-12-23 05:36:50 +00:00
update readme and docs
This commit is contained in:
parent
cc48dc2202
commit
fdaecaab62
2 changed files with 18 additions and 18 deletions
18
README.rst
18
README.rst
|
|
@ -38,33 +38,33 @@ A Glance:
|
|||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> first = cnn_paper.articles[0]
|
||||
>>> article = cnn_paper.articles[0]
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> first.download()
|
||||
>>> article.download()
|
||||
|
||||
>>> first.html
|
||||
>>> article.html
|
||||
u'<!DOCTYPE HTML><html itemscope itemtype="http://...'
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> first.parse()
|
||||
>>> article.parse()
|
||||
|
||||
>>> first.authors
|
||||
>>> article.authors
|
||||
[u'Leigh Ann Caldwell', 'John Honway']
|
||||
|
||||
>>> first.text
|
||||
>>> article.text
|
||||
u'Washington (CNN) -- Not everyone subscribes to a New Year's resolution...'
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> first.nlp()
|
||||
>>> article.nlp()
|
||||
|
||||
>>> first.keywords
|
||||
>>> article.keywords
|
||||
['New Years', 'resolution', ...]
|
||||
|
||||
>>> first.summary
|
||||
>>> article.summary
|
||||
u'The study shows that 93% of people ...'
|
||||
|
||||
Documentation
|
||||
|
|
|
|||
|
|
@ -38,33 +38,33 @@ A Glance:
|
|||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> first = cnn_paper.articles[0]
|
||||
>>> article = cnn_paper.articles[0]
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> first.download()
|
||||
>>> article.download()
|
||||
|
||||
>>> first.html
|
||||
>>> article.html
|
||||
u'<!DOCTYPE HTML><html itemscope itemtype="http://...'
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> first.parse()
|
||||
>>> article.parse()
|
||||
|
||||
>>> first.authors
|
||||
>>> article.authors
|
||||
[u'Leigh Ann Caldwell', 'John Honway']
|
||||
|
||||
>>> first.text
|
||||
>>> article.text
|
||||
u'Washington (CNN) -- Not everyone subscribes to a New Year's resolution...'
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> first.nlp()
|
||||
>>> article.nlp()
|
||||
|
||||
>>> first.keywords
|
||||
>>> article.keywords
|
||||
['New Years', 'resolution', ...]
|
||||
|
||||
>>> first.summary
|
||||
>>> article.summary
|
||||
u'The study shows that 93% of people ...'
|
||||
|
||||
User Guide
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue