From e19a7db6d23585f915b3dffd8c867007e25771d1 Mon Sep 17 00:00:00 2001 From: koppthe Date: Tue, 5 Jan 2016 20:15:52 +0800 Subject: [PATCH] update --- .gitattributes | 2 - .gitignore | 34 +- LICENSE | 20 - MANIFEST.in | 2 +- docs/Makefile | 177 ------- docs/_static/newspaper.jpg | Bin 13477 -> 0 bytes docs/_templates/sidebarintro.html | 17 - docs/_templates/sidebarlogo.html | 17 - docs/_themes/.gitignore | 3 - docs/_themes/LICENSE | 45 -- docs/_themes/README.rst | 25 - docs/_themes/flask_theme_support.py | 86 ---- docs/_themes/kr/layout.html | 74 --- docs/_themes/kr/relations.html | 19 - docs/_themes/kr/static/flasky.css_t | 536 ---------------------- docs/_themes/kr/theme.conf | 7 - docs/_themes/kr_small/layout.html | 22 - docs/_themes/kr_small/static/flasky.css_t | 287 ------------ docs/_themes/kr_small/theme.conf | 10 - docs/conf.py | 268 ----------- docs/index.rst | 212 --------- docs/make.bat | 242 ---------- docs/user_guide/advanced.rst | 243 ---------- docs/user_guide/api.rst | 4 - docs/user_guide/contributors.rst | 43 -- docs/user_guide/install.rst | 82 ---- docs/user_guide/quickstart.rst | 260 ----------- download_corpora.py | 19 +- 28 files changed, 12 insertions(+), 2744 deletions(-) delete mode 100644 .gitattributes delete mode 100644 LICENSE delete mode 100644 docs/Makefile delete mode 100644 docs/_static/newspaper.jpg delete mode 100644 docs/_templates/sidebarintro.html delete mode 100644 docs/_templates/sidebarlogo.html delete mode 100755 docs/_themes/.gitignore delete mode 100755 docs/_themes/LICENSE delete mode 100755 docs/_themes/README.rst delete mode 100755 docs/_themes/flask_theme_support.py delete mode 100755 docs/_themes/kr/layout.html delete mode 100755 docs/_themes/kr/relations.html delete mode 100755 docs/_themes/kr/static/flasky.css_t delete mode 100755 docs/_themes/kr/theme.conf delete mode 100755 docs/_themes/kr_small/layout.html delete mode 100755 docs/_themes/kr_small/static/flasky.css_t delete mode 100755 docs/_themes/kr_small/theme.conf delete mode 100644 docs/conf.py delete mode 100644 docs/index.rst delete mode 100644 docs/make.bat delete mode 100644 docs/user_guide/advanced.rst delete mode 100644 docs/user_guide/api.rst delete mode 100644 docs/user_guide/contributors.rst delete mode 100644 docs/user_guide/install.rst delete mode 100644 docs/user_guide/quickstart.rst diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 4cb342ff..00000000 --- a/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -docs/* linguist-documentation -tests/* linguist-vendored diff --git a/.gitignore b/.gitignore index 3d20afb1..8a292356 100644 --- a/.gitignore +++ b/.gitignore @@ -1,31 +1,5 @@ -*.pyc - .DS_Store -.idea -.pypirc - -# C extensions -*.so - -# Packages -*.egg -*.egg-info -dist -build -_build -eggs -parts -bin -var -sdist -develop-eggs -.installed.cfg -lib -lib64 -__pycache__ - -# Installer logs -pip-log.txt +*.pyc # Unit test / coverage reports .coverage @@ -34,9 +8,3 @@ nosetests.xml # Translations *.mo - -# Mr Developer -.mr.developer.cfg -.project -.pydevproject -venv diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 53582f7e..00000000 --- a/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2013 Lucas Ou-Yang - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/MANIFEST.in b/MANIFEST.in index 7de2595d..1e22f89c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -include requirements.txt README.rst LICENSE recursive-include newspaper * \ No newline at end of file +include requirements.txt README.rst recursive-include newspaper * \ No newline at end of file diff --git a/docs/Makefile b/docs/Makefile deleted file mode 100644 index b734f536..00000000 --- a/docs/Makefile +++ /dev/null @@ -1,177 +0,0 @@ -# Makefile for Sphinx documentation -# - -# You can set these variables from the command line. -SPHINXOPTS = -SPHINXBUILD = sphinx-build -PAPER = -BUILDDIR = _build - -# User-friendly check for sphinx-build -ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) -$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) -endif - -# Internal variables. -PAPEROPT_a4 = -D latex_paper_size=a4 -PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . -# the i18n builder cannot share the environment and doctrees with the others -I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . - -.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext - -help: - @echo "Please use \`make ' where is one of" - @echo " html to make standalone HTML files" - @echo " dirhtml to make HTML files named index.html in directories" - @echo " singlehtml to make a single large HTML file" - @echo " pickle to make pickle files" - @echo " json to make JSON files" - @echo " htmlhelp to make HTML files and a HTML help project" - @echo " qthelp to make HTML files and a qthelp project" - @echo " devhelp to make HTML files and a Devhelp project" - @echo " epub to make an epub" - @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" - @echo " latexpdf to make LaTeX files and run them through pdflatex" - @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" - @echo " text to make text files" - @echo " man to make manual pages" - @echo " texinfo to make Texinfo files" - @echo " info to make Texinfo files and run them through makeinfo" - @echo " gettext to make PO message catalogs" - @echo " changes to make an overview of all changed/added/deprecated items" - @echo " xml to make Docutils-native XML files" - @echo " pseudoxml to make pseudoxml-XML files for display purposes" - @echo " linkcheck to check all external links for integrity" - @echo " doctest to run all doctests embedded in the documentation (if enabled)" - -clean: - rm -rf $(BUILDDIR)/* - -html: - $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." - -dirhtml: - $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." - -singlehtml: - $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml - @echo - @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." - -pickle: - $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle - @echo - @echo "Build finished; now you can process the pickle files." - -json: - $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json - @echo - @echo "Build finished; now you can process the JSON files." - -htmlhelp: - $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp - @echo - @echo "Build finished; now you can run HTML Help Workshop with the" \ - ".hhp project file in $(BUILDDIR)/htmlhelp." - -qthelp: - $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp - @echo - @echo "Build finished; now you can run "qcollectiongenerator" with the" \ - ".qhcp project file in $(BUILDDIR)/qthelp, like this:" - @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/newspaper.qhcp" - @echo "To view the help file:" - @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/newspaper.qhc" - -devhelp: - $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp - @echo - @echo "Build finished." - @echo "To view the help file:" - @echo "# mkdir -p $$HOME/.local/share/devhelp/newspaper" - @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/newspaper" - @echo "# devhelp" - -epub: - $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub - @echo - @echo "Build finished. The epub file is in $(BUILDDIR)/epub." - -latex: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo - @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." - @echo "Run \`make' in that directory to run these through (pdf)latex" \ - "(use \`make latexpdf' here to do that automatically)." - -latexpdf: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through pdflatex..." - $(MAKE) -C $(BUILDDIR)/latex all-pdf - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -latexpdfja: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through platex and dvipdfmx..." - $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -text: - $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text - @echo - @echo "Build finished. The text files are in $(BUILDDIR)/text." - -man: - $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man - @echo - @echo "Build finished. The manual pages are in $(BUILDDIR)/man." - -texinfo: - $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo - @echo - @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." - @echo "Run \`make' in that directory to run these through makeinfo" \ - "(use \`make info' here to do that automatically)." - -info: - $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo - @echo "Running Texinfo files through makeinfo..." - make -C $(BUILDDIR)/texinfo info - @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." - -gettext: - $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale - @echo - @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." - -changes: - $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes - @echo - @echo "The overview file is in $(BUILDDIR)/changes." - -linkcheck: - $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck - @echo - @echo "Link check complete; look for any errors in the above output " \ - "or in $(BUILDDIR)/linkcheck/output.txt." - -doctest: - $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest - @echo "Testing of doctests in the sources finished, look at the " \ - "results in $(BUILDDIR)/doctest/output.txt." - -xml: - $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml - @echo - @echo "Build finished. The XML files are in $(BUILDDIR)/xml." - -pseudoxml: - $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml - @echo - @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." diff --git a/docs/_static/newspaper.jpg b/docs/_static/newspaper.jpg deleted file mode 100644 index 6bb3325a08281496b4080cd58676bc95b228d193..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13477 zcmaiac|26#|Nphi8nQ2=kjfTWOD4&dP^qk$>|~kjBV#7}PAH0yQYsizzFzVG+<_s93l6;!ctsbg005?HyLFDd=2>>*w z0f14~;hv8lB%cjbt{&)j?*Ko7@DcYL*L5KL2ErVFw}l|UtMBCHFnn5Pg(!3`U4*SXY%y$Kalkxi9wmo*WJtrx}Sn%M!EVJT!-*k2)}T!(=~&zE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+_SHK4`}JbD0q zlyZAJQj`A;bl#7e!Sa1fwK7;2bTSjK-4NrZmYq9%?{vNS*UYL2zmgajqd$xRRgNb_ zB@^qGeVu$?jo)=1`c`#9=aN{z_D(&t+TJ zO-TLhaJN(GV`|Uow7Yq-w2Dp=bM$fKV8mE1k+&+svt9+ZG7u~u>RE(!m(TJiIpqwM zXkYiTRjqRj^eoK&Xu@=Pq6y?D&q9aSL|l>S7BX|gf@1%cBD?Os)nRP*hV|&q)h|qR z1tt}P)|eB-WRE zSt!hvfy`PzW|qT~uPs|0y*XpQRD3Bh46ptzd9MAcWcJ;!+y;(m0l~9gXMT23d(5kL z=VOngqSr%mR3|2$Jqz<)(uQaIob_CtUEX@P9VlObcT;3PDc&{zVR~fEAz`!lrCz$B zta4?leoD@;o=>--y^to)lAbZfey_jr1Vuh}M-S}i)ur&&Je|LUX-hY_2wkw3pzyMnxp(@pY;cM$*o;*n&@O=4wu*|{C+C8b<)fX z`i|2sH@)#oLEQL*EDbA;!&T&!;Doa=F}8FD$;7Tfv>QOW<;G)h4`W z)OMDb$h9JBo+M$pmk`{I5~$#76pk9~bE9BSZ}}`}pOD@wvz(FjP4Nt`{5X$XLiWq^ z4Cr2_c6jUvw#=l?DUc%EnQ;s2+`o#B_20=z?vfLFQkl`wdWhlvos_t3Cg|J2i(hV4 hR6zTdachf1Ndk5hhJH!c`cvHK{vTP0uzLUi diff --git a/docs/_templates/sidebarintro.html b/docs/_templates/sidebarintro.html deleted file mode 100644 index ed966625..00000000 --- a/docs/_templates/sidebarintro.html +++ /dev/null @@ -1,17 +0,0 @@ - - -

- -

- -

Useful Links

- diff --git a/docs/_templates/sidebarlogo.html b/docs/_templates/sidebarlogo.html deleted file mode 100644 index 35ca7bca..00000000 --- a/docs/_templates/sidebarlogo.html +++ /dev/null @@ -1,17 +0,0 @@ - - -

- -

- -

Useful Links

- \ No newline at end of file diff --git a/docs/_themes/.gitignore b/docs/_themes/.gitignore deleted file mode 100755 index 66b6e4c2..00000000 --- a/docs/_themes/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc -*.pyo -.DS_Store diff --git a/docs/_themes/LICENSE b/docs/_themes/LICENSE deleted file mode 100755 index 3d1e04a2..00000000 --- a/docs/_themes/LICENSE +++ /dev/null @@ -1,45 +0,0 @@ -Modifications: - -Copyright (c) 2011 Kenneth Reitz. - - -Original Project: - -Copyright (c) 2010 by Armin Ronacher. - - -Some rights reserved. - -Redistribution and use in source and binary forms of the theme, with or -without modification, are permitted provided that the following conditions -are met: - -* Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - -* The names of the contributors may not be used to endorse or - promote products derived from this software without specific - prior written permission. - -We kindly ask you to only use these themes in an unmodified manner just -for Flask and Flask-related products, not for unrelated projects. If you -like the visual style and want to use it for your own projects, please -consider making some larger changes to the themes (such as changing -font faces, sizes, colors or margins). - -THIS THEME IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS THEME, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. diff --git a/docs/_themes/README.rst b/docs/_themes/README.rst deleted file mode 100755 index dd8d7c07..00000000 --- a/docs/_themes/README.rst +++ /dev/null @@ -1,25 +0,0 @@ -krTheme Sphinx Style -==================== - -This repository contains sphinx styles Kenneth Reitz uses in most of -his projects. It is a derivative of Mitsuhiko's themes for Flask and Flask related -projects. To use this style in your Sphinx documentation, follow -this guide: - -1. put this folder as _themes into your docs folder. Alternatively - you can also use git submodules to check out the contents there. - -2. add this to your conf.py: :: - - sys.path.append(os.path.abspath('_themes')) - html_theme_path = ['_themes'] - html_theme = 'flask' - -The following themes exist: - -**kr** - the standard flask documentation theme for large projects - -**kr_small** - small one-page theme. Intended to be used by very small addon libraries. - diff --git a/docs/_themes/flask_theme_support.py b/docs/_themes/flask_theme_support.py deleted file mode 100755 index 33f47449..00000000 --- a/docs/_themes/flask_theme_support.py +++ /dev/null @@ -1,86 +0,0 @@ -# flasky extensions. flasky pygments style based on tango style -from pygments.style import Style -from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic, Whitespace, Punctuation, Other, Literal - - -class FlaskyStyle(Style): - background_color = "#f8f8f8" - default_style = "" - - styles = { - # No corresponding class for the following: - #Text: "", # class: '' - Whitespace: "underline #f8f8f8", # class: 'w' - Error: "#a40000 border:#ef2929", # class: 'err' - Other: "#000000", # class 'x' - - Comment: "italic #8f5902", # class: 'c' - Comment.Preproc: "noitalic", # class: 'cp' - - Keyword: "bold #004461", # class: 'k' - Keyword.Constant: "bold #004461", # class: 'kc' - Keyword.Declaration: "bold #004461", # class: 'kd' - Keyword.Namespace: "bold #004461", # class: 'kn' - Keyword.Pseudo: "bold #004461", # class: 'kp' - Keyword.Reserved: "bold #004461", # class: 'kr' - Keyword.Type: "bold #004461", # class: 'kt' - - Operator: "#582800", # class: 'o' - Operator.Word: "bold #004461", # class: 'ow' - like keywords - - Punctuation: "bold #000000", # class: 'p' - - # because special names such as Name.Class, Name.Function, etc. - # are not recognized as such later in the parsing, we choose them - # to look the same as ordinary variables. - Name: "#000000", # class: 'n' - Name.Attribute: "#c4a000", # class: 'na' - to be revised - Name.Builtin: "#004461", # class: 'nb' - Name.Builtin.Pseudo: "#3465a4", # class: 'bp' - Name.Class: "#000000", # class: 'nc' - to be revised - Name.Constant: "#000000", # class: 'no' - to be revised - Name.Decorator: "#888", # class: 'nd' - to be revised - Name.Entity: "#ce5c00", # class: 'ni' - Name.Exception: "bold #cc0000", # class: 'ne' - Name.Function: "#000000", # class: 'nf' - Name.Property: "#000000", # class: 'py' - Name.Label: "#f57900", # class: 'nl' - Name.Namespace: "#000000", # class: 'nn' - to be revised - Name.Other: "#000000", # class: 'nx' - Name.Tag: "bold #004461", # class: 'nt' - like a keyword - Name.Variable: "#000000", # class: 'nv' - to be revised - Name.Variable.Class: "#000000", # class: 'vc' - to be revised - Name.Variable.Global: "#000000", # class: 'vg' - to be revised - Name.Variable.Instance: "#000000", # class: 'vi' - to be revised - - Number: "#990000", # class: 'm' - - Literal: "#000000", # class: 'l' - Literal.Date: "#000000", # class: 'ld' - - String: "#4e9a06", # class: 's' - String.Backtick: "#4e9a06", # class: 'sb' - String.Char: "#4e9a06", # class: 'sc' - String.Doc: "italic #8f5902", # class: 'sd' - like a comment - String.Double: "#4e9a06", # class: 's2' - String.Escape: "#4e9a06", # class: 'se' - String.Heredoc: "#4e9a06", # class: 'sh' - String.Interpol: "#4e9a06", # class: 'si' - String.Other: "#4e9a06", # class: 'sx' - String.Regex: "#4e9a06", # class: 'sr' - String.Single: "#4e9a06", # class: 's1' - String.Symbol: "#4e9a06", # class: 'ss' - - Generic: "#000000", # class: 'g' - Generic.Deleted: "#a40000", # class: 'gd' - Generic.Emph: "italic #000000", # class: 'ge' - Generic.Error: "#ef2929", # class: 'gr' - Generic.Heading: "bold #000080", # class: 'gh' - Generic.Inserted: "#00A000", # class: 'gi' - Generic.Output: "#888", # class: 'go' - Generic.Prompt: "#745334", # class: 'gp' - Generic.Strong: "bold #000000", # class: 'gs' - Generic.Subheading: "bold #800080", # class: 'gu' - Generic.Traceback: "bold #a40000", # class: 'gt' - } diff --git a/docs/_themes/kr/layout.html b/docs/_themes/kr/layout.html deleted file mode 100755 index b59a06fa..00000000 --- a/docs/_themes/kr/layout.html +++ /dev/null @@ -1,74 +0,0 @@ -{%- extends "basic/layout.html" %} - -{%- block extrahead %} - {{ super() }} - {% if theme_touch_icon %} - - {% endif %} - - -{% endblock %} - -{%- block relbar2 %}{% endblock %} - -{%- block footer %} - - - Fork me on GitHub - - - - - - - - - - - -{%- endblock %} diff --git a/docs/_themes/kr/relations.html b/docs/_themes/kr/relations.html deleted file mode 100755 index 3bbcde85..00000000 --- a/docs/_themes/kr/relations.html +++ /dev/null @@ -1,19 +0,0 @@ -

Related Topics

- diff --git a/docs/_themes/kr/static/flasky.css_t b/docs/_themes/kr/static/flasky.css_t deleted file mode 100755 index 3a13c358..00000000 --- a/docs/_themes/kr/static/flasky.css_t +++ /dev/null @@ -1,536 +0,0 @@ -/* - * flasky.css_t - * ~~~~~~~~~~~~ - * - * :copyright: Copyright 2010 by Armin Ronacher. Modifications by Kenneth Reitz. - * :license: Flask Design License, see LICENSE for details. - */ - -{% set page_width = '940px' %} -{% set sidebar_width = '220px' %} - -@import url("basic.css"); - -/* -- page layout ----------------------------------------------------------- */ - -body { - font-family: 'goudy old style', 'minion pro', 'bell mt', Georgia, 'Hiragino Mincho Pro'; - font-size: 17px; - background-color: white; - color: #000; - margin: 0; - padding: 0; -} - -div.document { - width: {{ page_width }}; - margin: 30px auto 0 auto; -} - -div.documentwrapper { - float: left; - width: 100%; -} - -div.bodywrapper { - margin: 0 0 0 {{ sidebar_width }}; -} - -div.sphinxsidebar { - width: {{ sidebar_width }}; -} - -hr { - border: 1px solid #B1B4B6; -} - -div.body { - background-color: #ffffff; - color: #3E4349; - padding: 0 30px 0 30px; -} - -img.floatingflask { - padding: 0 0 10px 10px; - float: right; -} - -div.footer { - width: {{ page_width }}; - margin: 20px auto 30px auto; - font-size: 14px; - color: #888; - text-align: right; -} - -div.footer a { - color: #888; -} - -div.related { - display: none; -} - -div.sphinxsidebar a { - color: #444; - text-decoration: none; - border-bottom: 1px dotted #999; -} - -div.sphinxsidebar a:hover { - border-bottom: 1px solid #999; -} - -div.sphinxsidebar { - font-size: 14px; - line-height: 1.5; -} - -div.sphinxsidebarwrapper { - padding: 18px 10px; -} - -div.sphinxsidebarwrapper p.logo { - padding: 0; - margin: -10px 0 0 -20px; - text-align: center; -} - -div.sphinxsidebar h3, -div.sphinxsidebar h4 { - font-family: 'Garamond', 'Georgia', serif; - color: #444; - font-size: 24px; - font-weight: normal; - margin: 0 0 5px 0; - padding: 0; -} - -div.sphinxsidebar h4 { - font-size: 20px; -} - -div.sphinxsidebar h3 a { - color: #444; -} - -div.sphinxsidebar p.logo a, -div.sphinxsidebar h3 a, -div.sphinxsidebar p.logo a:hover, -div.sphinxsidebar h3 a:hover { - border: none; -} - -div.sphinxsidebar p { - color: #555; - margin: 10px 0; -} - -div.sphinxsidebar ul { - margin: 10px 0; - padding: 0; - color: #000; -} - -div.sphinxsidebar input { - border: 1px solid #ccc; - font-family: 'Georgia', serif; - font-size: 1em; -} - -/* -- body styles ----------------------------------------------------------- */ - -a { - color: #004B6B; - text-decoration: underline; -} - -a:hover { - color: #6D4100; - text-decoration: underline; -} - -div.body h1, -div.body h2, -div.body h3, -div.body h4, -div.body h5, -div.body h6 { - font-family: 'Garamond', 'Georgia', serif; - font-weight: normal; - margin: 30px 0px 10px 0px; - padding: 0; -} - -div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; } -div.body h2 { font-size: 180%; } -div.body h3 { font-size: 150%; } -div.body h4 { font-size: 130%; } -div.body h5 { font-size: 100%; } -div.body h6 { font-size: 100%; } - -a.headerlink { - color: #ddd; - padding: 0 4px; - text-decoration: none; -} - -a.headerlink:hover { - color: #444; - background: #eaeaea; -} - -div.body p, div.body dd, div.body li { - line-height: 1.4em; -} - -div.admonition { - background: #fafafa; - margin: 20px -30px; - padding: 10px 30px; - border-top: 1px solid #ccc; - border-bottom: 1px solid #ccc; -} - -div.admonition tt.xref, div.admonition a tt { - border-bottom: 1px solid #fafafa; -} - -dd div.admonition { - margin-left: -60px; - padding-left: 60px; -} - -div.admonition p.admonition-title { - font-family: 'Garamond', 'Georgia', serif; - font-weight: normal; - font-size: 24px; - margin: 0 0 10px 0; - padding: 0; - line-height: 1; -} - -div.admonition p.last { - margin-bottom: 0; -} - -div.highlight { - background-color: white; -} - -dt:target, .highlight { - background: #FAF3E8; -} - -div.note { - background-color: #eee; - border: 1px solid #ccc; -} - -div.seealso { - background-color: #ffc; - border: 1px solid #ff6; -} - -div.topic { - background-color: #eee; -} - -p.admonition-title { - display: inline; -} - -p.admonition-title:after { - content: ":"; -} - -pre, tt { - font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace; - font-size: 0.9em; -} - -img.screenshot { -} - -tt.descname, tt.descclassname { - font-size: 0.95em; -} - -tt.descname { - padding-right: 0.08em; -} - -img.screenshot { - -moz-box-shadow: 2px 2px 4px #eee; - -webkit-box-shadow: 2px 2px 4px #eee; - box-shadow: 2px 2px 4px #eee; -} - -table.docutils { - border: 1px solid #888; - -moz-box-shadow: 2px 2px 4px #eee; - -webkit-box-shadow: 2px 2px 4px #eee; - box-shadow: 2px 2px 4px #eee; -} - -table.docutils td, table.docutils th { - border: 1px solid #888; - padding: 0.25em 0.7em; -} - -table.field-list, table.footnote { - border: none; - -moz-box-shadow: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -table.footnote { - margin: 15px 0; - width: 100%; - border: 1px solid #eee; - background: #fdfdfd; - font-size: 0.9em; -} - -table.footnote + table.footnote { - margin-top: -15px; - border-top: none; -} - -table.field-list th { - padding: 0 0.8em 0 0; -} - -table.field-list td { - padding: 0; -} - -table.footnote td.label { - width: 0px; - padding: 0.3em 0 0.3em 0.5em; -} - -table.footnote td { - padding: 0.3em 0.5em; -} - -dl { - margin: 0; - padding: 0; -} - -dl dd { - margin-left: 30px; -} - -blockquote { - margin: 0 0 0 30px; - padding: 0; -} - -ul, ol { - margin: 10px 0 10px 30px; - padding: 0; -} - -pre { - background: #eee; - padding: 7px 30px; - margin: 15px -30px; - line-height: 1.3em; -} - -dl pre, blockquote pre, li pre { - margin-left: -60px; - padding-left: 60px; -} - -dl dl pre { - margin-left: -90px; - padding-left: 90px; -} - -tt { - background-color: #ecf0f3; - color: #222; - /* padding: 1px 2px; */ -} - -tt.xref, a tt { - background-color: #FBFBFB; - border-bottom: 1px solid white; -} - -a.reference { - text-decoration: none; - border-bottom: 1px dotted #004B6B; -} - -a.reference:hover { - border-bottom: 1px solid #6D4100; -} - -a.footnote-reference { - text-decoration: none; - font-size: 0.7em; - vertical-align: top; - border-bottom: 1px dotted #004B6B; -} - -a.footnote-reference:hover { - border-bottom: 1px solid #6D4100; -} - -a:hover tt { - background: #EEE; -} - - -@media screen and (max-width: 870px) { - - div.sphinxsidebar { - display: none; - } - - div.document { - width: 100%; - - } - - div.documentwrapper { - margin-left: 0; - margin-top: 0; - margin-right: 0; - margin-bottom: 0; - } - - div.bodywrapper { - margin-top: 0; - margin-right: 0; - margin-bottom: 0; - margin-left: 0; - } - - ul { - margin-left: 0; - } - - .document { - width: auto; - } - - .footer { - width: auto; - } - - .bodywrapper { - margin: 0; - } - - .footer { - width: auto; - } - - .github { - display: none; - } - - - -} - - - -@media screen and (max-width: 875px) { - - body { - margin: 0; - padding: 20px 30px; - } - - div.documentwrapper { - float: none; - background: white; - } - - div.sphinxsidebar { - display: block; - float: none; - width: 102.5%; - margin: 50px -30px -20px -30px; - padding: 10px 20px; - background: #333; - color: white; - } - - div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, - div.sphinxsidebar h3 a { - color: white; - } - - div.sphinxsidebar a { - color: #aaa; - } - - div.sphinxsidebar p.logo { - display: none; - } - - div.document { - width: 100%; - margin: 0; - } - - div.related { - display: block; - margin: 0; - padding: 10px 0 20px 0; - } - - div.related ul, - div.related ul li { - margin: 0; - padding: 0; - } - - div.footer { - display: none; - } - - div.bodywrapper { - margin: 0; - } - - div.body { - min-height: 0; - padding: 0; - } - - .rtd_doc_footer { - display: none; - } - - .document { - width: auto; - } - - .footer { - width: auto; - } - - .footer { - width: auto; - } - - .github { - display: none; - } -} - - -/* misc. */ - -.revsys-inline { - display: none!important; -} \ No newline at end of file diff --git a/docs/_themes/kr/theme.conf b/docs/_themes/kr/theme.conf deleted file mode 100755 index 07698f6f..00000000 --- a/docs/_themes/kr/theme.conf +++ /dev/null @@ -1,7 +0,0 @@ -[theme] -inherit = basic -stylesheet = flasky.css -pygments_style = flask_theme_support.FlaskyStyle - -[options] -touch_icon = diff --git a/docs/_themes/kr_small/layout.html b/docs/_themes/kr_small/layout.html deleted file mode 100755 index aa1716aa..00000000 --- a/docs/_themes/kr_small/layout.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "basic/layout.html" %} -{% block header %} - {{ super() }} - {% if pagename == 'index' %} -
- {% endif %} -{% endblock %} -{% block footer %} - {% if pagename == 'index' %} -
- {% endif %} -{% endblock %} -{# do not display relbars #} -{% block relbar1 %}{% endblock %} -{% block relbar2 %} - {% if theme_github_fork %} - Fork me on GitHub - {% endif %} -{% endblock %} -{% block sidebar1 %}{% endblock %} -{% block sidebar2 %}{% endblock %} diff --git a/docs/_themes/kr_small/static/flasky.css_t b/docs/_themes/kr_small/static/flasky.css_t deleted file mode 100755 index 71961a27..00000000 --- a/docs/_themes/kr_small/static/flasky.css_t +++ /dev/null @@ -1,287 +0,0 @@ -/* - * flasky.css_t - * ~~~~~~~~~~~~ - * - * Sphinx stylesheet -- flasky theme based on nature theme. - * - * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -@import url("basic.css"); - -/* -- page layout ----------------------------------------------------------- */ - -body { - font-family: 'Georgia', serif; - font-size: 17px; - color: #000; - background: white; - margin: 0; - padding: 0; -} - -div.documentwrapper { - float: left; - width: 100%; -} - -div.bodywrapper { - margin: 40px auto 0 auto; - width: 700px; -} - -hr { - border: 1px solid #B1B4B6; -} - -div.body { - background-color: #ffffff; - color: #3E4349; - padding: 0 30px 30px 30px; -} - -img.floatingflask { - padding: 0 0 10px 10px; - float: right; -} - -div.footer { - text-align: right; - color: #888; - padding: 10px; - font-size: 14px; - width: 650px; - margin: 0 auto 40px auto; -} - -div.footer a { - color: #888; - text-decoration: underline; -} - -div.related { - line-height: 32px; - color: #888; -} - -div.related ul { - padding: 0 0 0 10px; -} - -div.related a { - color: #444; -} - -/* -- body styles ----------------------------------------------------------- */ - -a { - color: #004B6B; - text-decoration: underline; -} - -a:hover { - color: #6D4100; - text-decoration: underline; -} - -div.body { - padding-bottom: 40px; /* saved for footer */ -} - -div.body h1, -div.body h2, -div.body h3, -div.body h4, -div.body h5, -div.body h6 { - font-family: 'Garamond', 'Georgia', serif; - font-weight: normal; - margin: 30px 0px 10px 0px; - padding: 0; -} - -{% if theme_index_logo %} -div.indexwrapper h1 { - text-indent: -999999px; - background: url({{ theme_index_logo }}) no-repeat center center; - height: {{ theme_index_logo_height }}; -} -{% endif %} - -div.body h2 { font-size: 180%; } -div.body h3 { font-size: 150%; } -div.body h4 { font-size: 130%; } -div.body h5 { font-size: 100%; } -div.body h6 { font-size: 100%; } - -a.headerlink { - color: white; - padding: 0 4px; - text-decoration: none; -} - -a.headerlink:hover { - color: #444; - background: #eaeaea; -} - -div.body p, div.body dd, div.body li { - line-height: 1.4em; -} - -div.admonition { - background: #fafafa; - margin: 20px -30px; - padding: 10px 30px; - border-top: 1px solid #ccc; - border-bottom: 1px solid #ccc; -} - -div.admonition p.admonition-title { - font-family: 'Garamond', 'Georgia', serif; - font-weight: normal; - font-size: 24px; - margin: 0 0 10px 0; - padding: 0; - line-height: 1; -} - -div.admonition p.last { - margin-bottom: 0; -} - -div.highlight{ - background-color: white; -} - -dt:target, .highlight { - background: #FAF3E8; -} - -div.note { - background-color: #eee; - border: 1px solid #ccc; -} - -div.seealso { - background-color: #ffc; - border: 1px solid #ff6; -} - -div.topic { - background-color: #eee; -} - -div.warning { - background-color: #ffe4e4; - border: 1px solid #f66; -} - -p.admonition-title { - display: inline; -} - -p.admonition-title:after { - content: ":"; -} - -pre, tt { - font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace; - font-size: 0.85em; -} - -img.screenshot { -} - -tt.descname, tt.descclassname { - font-size: 0.95em; -} - -tt.descname { - padding-right: 0.08em; -} - -img.screenshot { - -moz-box-shadow: 2px 2px 4px #eee; - -webkit-box-shadow: 2px 2px 4px #eee; - box-shadow: 2px 2px 4px #eee; -} - -table.docutils { - border: 1px solid #888; - -moz-box-shadow: 2px 2px 4px #eee; - -webkit-box-shadow: 2px 2px 4px #eee; - box-shadow: 2px 2px 4px #eee; -} - -table.docutils td, table.docutils th { - border: 1px solid #888; - padding: 0.25em 0.7em; -} - -table.field-list, table.footnote { - border: none; - -moz-box-shadow: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -table.footnote { - margin: 15px 0; - width: 100%; - border: 1px solid #eee; -} - -table.field-list th { - padding: 0 0.8em 0 0; -} - -table.field-list td { - padding: 0; -} - -table.footnote td { - padding: 0.5em; -} - -dl { - margin: 0; - padding: 0; -} - -dl dd { - margin-left: 30px; -} - -pre { - padding: 0; - margin: 15px -30px; - padding: 8px; - line-height: 1.3em; - padding: 7px 30px; - background: #eee; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; -} - -dl pre { - margin-left: -60px; - padding-left: 60px; -} - -tt { - background-color: #ecf0f3; - color: #222; - /* padding: 1px 2px; */ -} - -tt.xref, a tt { - background-color: #FBFBFB; -} - -a:hover tt { - background: #EEE; -} diff --git a/docs/_themes/kr_small/theme.conf b/docs/_themes/kr_small/theme.conf deleted file mode 100755 index 542b4625..00000000 --- a/docs/_themes/kr_small/theme.conf +++ /dev/null @@ -1,10 +0,0 @@ -[theme] -inherit = basic -stylesheet = flasky.css -nosidebar = true -pygments_style = flask_theme_support.FlaskyStyle - -[options] -index_logo = '' -index_logo_height = 120px -github_fork = '' diff --git a/docs/conf.py b/docs/conf.py deleted file mode 100644 index 17bcf9af..00000000 --- a/docs/conf.py +++ /dev/null @@ -1,268 +0,0 @@ -# -*- coding: utf-8 -*- -# -# newspaper documentation build configuration file, created by -# sphinx-quickstart on Sat Dec 21 22:26:51 2013. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -import sys -import os - -sys.path.append(os.path.abspath('_themes')) - - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -#sys.path.insert(0, os.path.abspath('.')) - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -#needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = [ - 'sphinx.ext.todo', -] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix of source filenames. -source_suffix = '.rst' - -# The encoding of source files. -#source_encoding = 'utf-8-sig' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = 'newspaper' -copyright = '2013, Lucas Ou-Yang' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The short X.Y version. -version = '0.0.2' -# The full version, including alpha/beta/rc tags. -release = '0.0.2' - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -#language = None - -# There are two options for replacing |today|: either, you set today to some -# non-false value, then it is used: -#today = '' -# Else, today_fmt is used as the format for a strftime call. -#today_fmt = '%B %d, %Y' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -exclude_patterns = ['_build'] - -# The reST default role (used for this markup: `text`) to use for all -# documents. -#default_role = None - -# If true, '()' will be appended to :func: etc. cross-reference text. -#add_function_parentheses = True - -# If true, the current module name will be prepended to all description -# unit titles (such as .. function::). -#add_module_names = True - -# If true, sectionauthor and moduleauthor directives will be shown in the -# output. They are ignored by default. -#show_authors = False - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# A list of ignored prefixes for module index sorting. -#modindex_common_prefix = [] - -# If true, keep warnings as "system message" paragraphs in the built documents. -#keep_warnings = False - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -#html_theme_options = {} - -# Add any paths that contain custom themes here, relative to this directory. -html_theme_path = ['_themes'] - -html_theme = 'kr' - -# The name for this set of Sphinx documents. If None, it defaults to -# " v documentation". -#html_title = None - -# A shorter title for the navigation bar. Default is the same as html_title. -#html_short_title = None - -# The name of an image file (relative to this directory) to place at the top -# of the sidebar. -#html_logo = None - -# The name of an image file (within the static path) to use as favicon of the -# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 -# pixels large. -#html_favicon = None - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] - -# Add any extra paths that contain custom files (such as robots.txt or -# .htaccess) here, relative to this directory. These files are copied -# directly to the root of the documentation. -#html_extra_path = [] - -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, -# using the given strftime format. -#html_last_updated_fmt = '%b %d, %Y' - -# If true, SmartyPants will be used to convert quotes and dashes to -# typographically correct entities. -#html_use_smartypants = True - -# Custom sidebar templates, maps document names to template names. -html_sidebars = { - 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'], - '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html', - 'sourcelink.html', 'searchbox.html'] -} - -# Additional templates that should be rendered to pages, maps page names to -# template names. -#html_additional_pages = {} - -# If false, no module index is generated. -#html_domain_indices = True - -# If false, no index is generated. -#html_use_index = True - -# If true, the index is split into individual pages for each letter. -#html_split_index = False - -# If true, links to the reST sources are added to the pages. -#html_show_sourcelink = True - -# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. -#html_show_sphinx = True - -# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. -#html_show_copyright = True - -# If true, an OpenSearch description file will be output, and all pages will -# contain a tag referring to it. The value of this option must be the -# base URL from which the finished HTML is served. -#html_use_opensearch = '' - -# This is the file name suffix for HTML files (e.g. ".xhtml"). -#html_file_suffix = None - -# Output file base name for HTML help builder. -htmlhelp_basename = 'newspaperdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { -# The paper size ('letterpaper' or 'a4paper'). -#'papersize': 'letterpaper', - -# The font size ('10pt', '11pt' or '12pt'). -#'pointsize': '10pt', - -# Additional stuff for the LaTeX preamble. -#'preamble': '', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - ('index', 'newspaper.tex', 'newspaper Documentation', - 'Lucas Ou-Yang', 'manual'), -] - -# The name of an image file (relative to this directory) to place at the top of -# the title page. -#latex_logo = None - -# For "manual" documents, if this is true, then toplevel headings are parts, -# not chapters. -#latex_use_parts = False - -# If true, show page references after internal links. -#latex_show_pagerefs = False - -# If true, show URL addresses after external links. -#latex_show_urls = False - -# Documents to append as an appendix to all manuals. -#latex_appendices = [] - -# If false, no module index is generated. -#latex_domain_indices = True - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - ('index', 'newspaper', 'newspaper Documentation', - ['Lucas Ou-Yang'], 1) -] - -# If true, show URL addresses after external links. -#man_show_urls = False - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - ('index', 'newspaper', 'newspaper Documentation', - 'Lucas Ou-Yang', 'newspaper', 'One line description of project.', - 'Miscellaneous'), -] - -# Documents to append as an appendix to all manuals. -#texinfo_appendices = [] - -# If false, no module index is generated. -#texinfo_domain_indices = True - -# How to display URL addresses: 'footnote', 'no', or 'inline'. -#texinfo_show_urls = 'footnote' - -# If true, do not generate a @detailmenu in the "Top" node's menu. -#texinfo_no_detailmenu = False diff --git a/docs/index.rst b/docs/index.rst deleted file mode 100644 index 108471e7..00000000 --- a/docs/index.rst +++ /dev/null @@ -1,212 +0,0 @@ -Newspaper: Article scraping & curation -====================================== - -Release v0.1.2. :ref:`(Installation) `. - -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/ - -**We support 10+ languages and everything is in unicode!** - -.. code-block:: pycon - - >>> import newspaper - >>> newspaper.languages() - - Your available langauges are: - input code full name - - ar Arabic - ru Russian - nl Dutch - de German - en English - es Spanish - fr French - it Italian - ko Korean - no Norwegian - pt Portuguese - sv Swedish - hu Hungarian - fi Finnish - da Danish - zh Chinese - id Indonesian - vi Vietnamese - -A Glance: ---------- - -.. code-block:: pycon - - >>> import newspaper - - >>> cnn_paper = newspaper.build('http://cnn.com') - - >>> for article in cnn_paper.articles: - >>> print(article.url) - u'http://www.cnn.com/2013/11/27/justice/tucson-arizona-captive-girls/' - u'http://www.cnn.com/2013/12/11/us/texas-teen-dwi-wreck/index.html' - ... - - >>> for category in cnn_paper.category_urls(): - >>> print(category) - - u'http://lifestyle.cnn.com' - u'http://cnn.com/world' - u'http://tech.cnn.com' - ... - -.. code-block:: pycon - - >>> article = cnn_paper.articles[0] - -.. code-block:: pycon - - >>> article.download() - - >>> article.html - u'` where ^ is one of - echo. html to make standalone HTML files - echo. dirhtml to make HTML files named index.html in directories - echo. singlehtml to make a single large HTML file - echo. pickle to make pickle files - echo. json to make JSON files - echo. htmlhelp to make HTML files and a HTML help project - echo. qthelp to make HTML files and a qthelp project - echo. devhelp to make HTML files and a Devhelp project - echo. epub to make an epub - echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter - echo. text to make text files - echo. man to make manual pages - echo. texinfo to make Texinfo files - echo. gettext to make PO message catalogs - echo. changes to make an overview over all changed/added/deprecated items - echo. xml to make Docutils-native XML files - echo. pseudoxml to make pseudoxml-XML files for display purposes - echo. linkcheck to check all external links for integrity - echo. doctest to run all doctests embedded in the documentation if enabled - goto end -) - -if "%1" == "clean" ( - for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i - del /q /s %BUILDDIR%\* - goto end -) - - -%SPHINXBUILD% 2> nul -if errorlevel 9009 ( - echo. - echo.The 'sphinx-build' command was not found. Make sure you have Sphinx - echo.installed, then set the SPHINXBUILD environment variable to point - echo.to the full path of the 'sphinx-build' executable. Alternatively you - echo.may add the Sphinx directory to PATH. - echo. - echo.If you don't have Sphinx installed, grab it from - echo.http://sphinx-doc.org/ - exit /b 1 -) - -if "%1" == "html" ( - %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/html. - goto end -) - -if "%1" == "dirhtml" ( - %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml. - goto end -) - -if "%1" == "singlehtml" ( - %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml. - goto end -) - -if "%1" == "pickle" ( - %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can process the pickle files. - goto end -) - -if "%1" == "json" ( - %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can process the JSON files. - goto end -) - -if "%1" == "htmlhelp" ( - %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can run HTML Help Workshop with the ^ -.hhp project file in %BUILDDIR%/htmlhelp. - goto end -) - -if "%1" == "qthelp" ( - %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can run "qcollectiongenerator" with the ^ -.qhcp project file in %BUILDDIR%/qthelp, like this: - echo.^> qcollectiongenerator %BUILDDIR%\qthelp\newspaper.qhcp - echo.To view the help file: - echo.^> assistant -collectionFile %BUILDDIR%\qthelp\newspaper.ghc - goto end -) - -if "%1" == "devhelp" ( - %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. - goto end -) - -if "%1" == "epub" ( - %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The epub file is in %BUILDDIR%/epub. - goto end -) - -if "%1" == "latex" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; the LaTeX files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "latexpdf" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - cd %BUILDDIR%/latex - make all-pdf - cd %BUILDDIR%/.. - echo. - echo.Build finished; the PDF files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "latexpdfja" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - cd %BUILDDIR%/latex - make all-pdf-ja - cd %BUILDDIR%/.. - echo. - echo.Build finished; the PDF files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "text" ( - %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The text files are in %BUILDDIR%/text. - goto end -) - -if "%1" == "man" ( - %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The manual pages are in %BUILDDIR%/man. - goto end -) - -if "%1" == "texinfo" ( - %SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo. - goto end -) - -if "%1" == "gettext" ( - %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The message catalogs are in %BUILDDIR%/locale. - goto end -) - -if "%1" == "changes" ( - %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes - if errorlevel 1 exit /b 1 - echo. - echo.The overview file is in %BUILDDIR%/changes. - goto end -) - -if "%1" == "linkcheck" ( - %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck - if errorlevel 1 exit /b 1 - echo. - echo.Link check complete; look for any errors in the above output ^ -or in %BUILDDIR%/linkcheck/output.txt. - goto end -) - -if "%1" == "doctest" ( - %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest - if errorlevel 1 exit /b 1 - echo. - echo.Testing of doctests in the sources finished, look at the ^ -results in %BUILDDIR%/doctest/output.txt. - goto end -) - -if "%1" == "xml" ( - %SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The XML files are in %BUILDDIR%/xml. - goto end -) - -if "%1" == "pseudoxml" ( - %SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml. - goto end -) - -:end diff --git a/docs/user_guide/advanced.rst b/docs/user_guide/advanced.rst deleted file mode 100644 index 4aac8508..00000000 --- a/docs/user_guide/advanced.rst +++ /dev/null @@ -1,243 +0,0 @@ -.. _advanced: - -Advanced -======== - -This section of the docs shows how to do some useful but advanced things -with newspaper. - -Multi-threading article downloads ---------------------------------- - -**Downloading articles one at a time is slow.** But spamming a single news source -like cnn.com with tons of threads or with ASYNC-IO will cause rate limiting -and also doing that is very mean. - -We solve this problem by allocating 1-2 threads per news source to both greatly -speed up the download time while being respectful. - -.. code-block:: pycon - - >>> import newspaper - >>> from newspaper import news_pool - - >>> slate_paper = newspaper.build('http://slate.com') - >>> tc_paper = newspaper.build('http://techcrunch.com') - >>> espn_paper = newspaper.build('http://espn.com') - - >>> papers = [slate_paper, tc_paper, espn_paper] - >>> news_pool.set(papers, threads_per_source=2) # (3*2) = 6 threads total - >>> news_pool.join() - - At this point, you can safely assume that download() has been - called on every single article for all 3 sources. - - >>> print(slate_paper.articles[10].html) - u' ...' - -Keeping Html of main body article ---------------------------------- - -Keeping the html of just an article's body text is helpbut because it allows you -to retain some of the semantic information in the html. Also it will help if you -end up displaying the extracted article somehow. - -Here is how to do so: - -.. code-block:: pycon - - >>> from newspaper import Article - - >>> a = Article('http://www.cnn.com/2014/01/12/world/asia/north-korea-charles-smith/index.html' - , keep_article_html=True) - - >>> a.download() - >>> a.parse() - - >>> a.article_html - u'
\n

(CNN) -- Charles Smith insisted Sunda...' - -The lxml (dom object) and top_node (chunk of dom that contains our 'Article') are also -cached incase users would like to use them. - -Access **after parsing()** with: - -.. code-block:: pycon - - >>> a.download() - >>> a.parse() - >>> a.clean_dom - - - >>> a.clean_top_node - - - -Adding new languages --------------------- - -First, please reference this file and read from the highlighted line all the way -down to the end of the file. - -`https://github.com/codelucas/newspaper/blob/master/newspaper/text.py#L57 `_ - -One aspect of our text extraction algorithm revolves around counting the number of -**stopwords** present in a text. Stopwords are: *some of the most common, short -function words, such as the, is, at, which, and on* in a language. - -Reference this line to see it in action: -`https://github.com/codelucas/newspaper/blob/master/newspaper/extractors.py#L668 `_ - -**So for latin languages**, it is pretty basic. We first provide a list of -stopwords in ``stopwords-.txt`` form. We then take some input text and -tokenize it into words by splitting the white space. After that we perform some -bookkeeping and then proceed to count the number of stopwords present. - -**For non-latin languages**, as you may have noticed in the code above, we need to -tokenize the words in a different way, *splitting by whitespace simply won't work for -languages like Chinese or Arabic*. For the Chinese language we are using a whole new -open source library called *jieba* to split the text into words. For arabic we are -using a special nltk tokenizer to do the same job. - -**So, to add full text extraction to a new (non-latin) language, we need:** - -1. Push up a stopwords file in the format of ``stopwords-<2-char-language-code>.txt`` -in ``newspaper/resources/text/.`` - -2. Provide a way of splitting/tokenizing text in that foreign language into words. -`Here are some examples for Chinese, Arabic, English `_ - -**For latin languages:** - -1. Push up a stopwords file in the format of ``stopwords-<2-char-language-code>.txt`` -in ``newspaper/resources/text/.`` and we are done! - - -Explicitly building a news source ---------------------------------- - -Instead of using the ``newspaper.build(..)`` api, we can take one step lower -into newspaper's ``Source`` api. - -.. code-block:: pycon - - >>> from newspaper import Source - >>> cnn_paper = Source('http://cnn.com') - - >>> print(cnn_paper.size()) # no articles, we have not built the source - 0 - - >>> cnn_paper.build() - >>> print(cnn_paper.size()) - 3100 - -Note the ``build()`` method above. You may go lower level and de-abstract it -for absolute control over how your sources are constructed. - -.. code-block:: pycon - - >>> cnn_paper = Source('http://cnn.com') - >>> cnn_paper.download() - >>> cnn_paper.parse() - >>> cnn_paper.set_categories() - >>> cnn_paper.download_categories() - >>> cnn_paper.parse_categories() - >>> cnn_paper.set_feeds() - >>> cnn_paper.download_feeds() - >>> cnn_paper.generate_articles() - - >>> print(cnn_paper.size()) - 3100 - -And voila, we have mimic'd the ``build()`` method. In the above sequence, -every method is dependant on the method above it. Stop whenever you wish. - -Parameters and Configurations ------------------------------ - -Newspaper provides two api's for users to configure their ``Article`` and -``Source`` objects. One is via named parameter passing **recommended** and -the other is via ``Config`` objects. - -Here are some named parameter passing examples: - -.. code-block:: pycon - - >>> import newspaper - >>> from newspaper import Article, Source - - >>> cnn = newspaper.build('http://cnn.com', language='en', memoize_articles=False) - - >>> article = Article(url='http://cnn.com/french/...', language='fr', fetch_images=False) - - >>> cnn = Source(url='http://latino.cnn.com/...', language='es', request_timeout=10, - number_threads=20) - - -Here are some examples of how Config objects are passed. - -.. code-block:: pycon - - >>> import newspaper - >>> from newspaper import Config, Article, Source - - >>> config = Config() - >>> config.memoize_articles = False - - >>> cbs_paper = newspaper.build('http://cbs.com', config) - - >>> article_1 = Article(url='http://espn/2013/09/...', config) - - >>> cbs_paper = Source('http://cbs.com', config) - - -Here is a full list of the configuration options: - -``keep_article_html``, default False, "set to True if you want to preserve html of body text" - -``MIN_WORD_COUNT``, default 300, "num of word tokens in article text" - -``MIN_SENT_COUNT``, default 7, "num of sentence tokens" - -``MAX_TITLE``, default 200, "num of chars in article title" - -``MAX_TEXT``, default 100000, "num of chars in article text" - -``MAX_KEYWORDS``, default 35, "num of keywords in article" - -``MAX_AUTHORS``, default 10, "num of author names in article" - -``MAX_SUMMARY``, default 5000, "num of chars of the summary" - -``MAX_FILE_MEMO``, default 20000, "python setup.py sdist bdist_wininst upload" - -``memoize_articles``, default True, "cache and save articles run after run" - -``fetch_images``, default True, "set this to false if you don't care about getting images" - -``image_dimension_ration``, default 16/9.0, "max ratio for height/width, we ignore if greater" - -``language``, default 'en', "run ``newspaper.languages()`` to see available options." - -``browser_user_agent``, default 'newspaper/%s' % __version__ - -``request_timeout``, default 7 - -``number_threads``, default 10, "number of threads when mthreading" - -``verbose``, default False, "turn this on when debugging" - -You may notice other config options in the ``newspaper/configuration.py`` file, -however, they are private, **please do not toggle them**. - -Caching -------- - -TODO - -Specifications --------------- - -Here, we will define exactly *how* newspaper handles a lot of the data extraction. - -TODO diff --git a/docs/user_guide/api.rst b/docs/user_guide/api.rst deleted file mode 100644 index cd0dbd34..00000000 --- a/docs/user_guide/api.rst +++ /dev/null @@ -1,4 +0,0 @@ -.. _api: - -Newspaper API -============= diff --git a/docs/user_guide/contributors.rst b/docs/user_guide/contributors.rst deleted file mode 100644 index 5d50a3d9..00000000 --- a/docs/user_guide/contributors.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. _contributors: - -Contributors -============ - -Maintained and authored by: ---------------------------- -Lucas Ou-Yang -- http://codelucas.com, lucasyangpersonal@gmail.com - -Thanks to the following contributors: -------------------------------------- -https://github.com/codelucas/newspaper/graphs/contributors - -Newspaper relied on some code of a few other open source projects: ------------------------------------------------------------------- -Thanks to all who have contributed to python-goose. -You can find the contributors list here: -https://github.com/grangier/python-goose/graphs/contributors - -Thanks to all who have contributed to PyTeaser. -You can find the contributors list here: -https://github.com/xiaoxu193/PyTeaser/graphs/contributors - -Thanks to all who have contributed to gravity-goose. -You can find the contributors list here: -https://github.com/GravityLabs/goose/graphs/contributors - -Thanks to all who have contributed to jieba. -You can find the contributors list here: -https://github.com/fxsjy/jieba/graphs/contributors - -Thanks to all who have contributed to nltk. -You can find the contributors list here: -https://github.com/nltk/nltk/graphs/contributors - -Thanks to all who have contributed to lxml. -You can find the contributors list here: -http://lxml.de/credits.html - -Thanks to all who have contributed to requests. -You can find the contributors list here: -https://github.com/kennethreitz/requests/graphs/contributors - diff --git a/docs/user_guide/install.rst b/docs/user_guide/install.rst deleted file mode 100644 index 1e85af86..00000000 --- a/docs/user_guide/install.rst +++ /dev/null @@ -1,82 +0,0 @@ -.. _install: - -Installation -============ - -This part of the documentation covers the installation of newspaper. -The first step to using any software package is getting it properly installed. - -Distribute & Pip ----------------- -Installing newspaper is simple with `pip `_. -However, you will run into fixable issues if you are trying to install on ubuntu. - -**If you are on Debian / Ubuntu**, install using the following: - -- Python development version, needed for Python.h:: - - $ sudo apt-get install python-dev - -- lxml requirements:: - - $ sudo apt-get install libxml2-dev libxslt-dev - -- For PIL to recognize .jpg images:: - - $ sudo apt-get install libjpeg-dev zlib1g-dev libpng12-dev - -- Install the distribution via pip:: - - $ pip install newspaper - -- Download NLP related corpora:: - - $ curl https://raw.githubusercontent.com/codelucas/newspaper/master/download_corpora.py | python2.7 - - -**If you are on OSX**, install using the following, you may use both homebrew or macports: - -:: - - $ brew install libxml2 libxslt - - $ brew install libtiff libjpeg webp little-cms2 - - $ pip install newspaper - - $ curl https://raw.githubusercontent.com/codelucas/newspaper/master/download_corpora.py | python2.7 - - -**Otherwise**, install with the following: - -NOTE: You will still most likely need to install the following libraries via your package manager - -- PIL: ``libjpeg-dev`` ``zlib1g-dev`` ``libpng12-dev`` -- lxml: ``libxml2-dev`` ``libxslt-dev`` -- Python Development version: ``python-dev`` - -:: - - $ pip install newspaper - - $ curl https://raw.githubusercontent.com/codelucas/newspaper/master/download_corpora.py | python2.7 - -Get the Code ------------- - -Newspaper is actively developed on GitHub, where the code is -`always available `_. - -You can clone the public repository:: - - git clone git://github.com/codelucas/newspaper.git - -Once you have a copy of the source, you can embed it in your Python package, -or install it into your site-packages easily:: - - $ pip install -r requirements.txt - $ python setup.py install - -Feel free to give our testing suite a shot:: - - $ python tests/unit_tests.py diff --git a/docs/user_guide/quickstart.rst b/docs/user_guide/quickstart.rst deleted file mode 100644 index d7a12c57..00000000 --- a/docs/user_guide/quickstart.rst +++ /dev/null @@ -1,260 +0,0 @@ -.. _quickstart: - -Quickstart -========== - -Eager to get started? This page gives a good introduction in how to get started -with newspaper. This assumes you already have newspaper installed. If you do not, -head over to the :ref:`Installation ` section. - -Building a news source ----------------------- - -Source objects are an abstraction of online news media websites like CNN or ESPN. -You can initialize them in two *different* ways. - -Building a ``Source`` will extract its categories, feeds, articles, brand, and description for you. - -You may also provide configuration parameters like ``language``, ``browser_user_agent``, and etc seamlessly. Navigate to the :ref:`advanced ` section for details. - -.. code-block:: pycon - - >>> import newspaper - >>> cnn_paper = newspaper.build('http://cnn.com') - - >>> sina_paper = newspaper.build('http://www.lemonde.fr/', language='fr') - -However, if needed, you may also play with the lower level ``Source`` object as described -in the :ref:`advanced ` section. - -Extracting articles -------------------- - -Every news source has a set of *recent* articles. - -The following examples assume that a news source has been -initialized and built. - -.. code-block:: pycon - - >>> for article in cnn_paper.articles: - >>> print(article.url) - - u'http://www.cnn.com/2013/11/27/justice/tucson-arizona-captive-girls/' - u'http://www.cnn.com/2013/12/11/us/texas-teen-dwi-wreck/index.html' - ... - - >>> print(cnn_paper.size()) # cnn has 3100 articles - 3100 - -Article caching ---------------- - -By default, newspaper caches all previously extracted articles and **eliminates any -article which it has already extracted**. - -This feature exists to prevent duplicate articles and to increase extraction speed. - -.. code-block:: pycon - - >>> cbs_paper = newspaper.build('http://cbs.com') - >>> cbs_paper.size() - 1030 - - >>> cbs_paper = newspaper.build('http://cbs.com') - >>> cbs_paper.size() - 2 - -The return value of ``cbs_paper.size()`` changes from 1030 to 2 because when we first -crawled cbs we found 1030 articles. However, on our second crawl, we eliminate all -articles which have already been crawled. - -This means **2** new articles have been published since our first extraction. - -You may opt out of this feature with the ``memoize_articles`` parameter. - -You may also pass in the lower level``Config`` objects as covered in the :ref:`advanced ` section. - -.. code-block:: pycon - - >>> import newspaper - - >>> cbs_paper = newspaper.build('http://cbs.com', memoize_articles=False) - >>> cbs_paper.size() - 1030 - - >>> cbs_paper = newspaper.build('http://cbs.com', memoize_articles=False) - >>> cbs_paper.size() - 1030 - - -Extracting Source categories ----------------------------- - -.. code-block:: pycon - - >>> for category in cnn_paper.category_urls(): - >>> print(category) - - u'http://lifestyle.cnn.com' - u'http://cnn.com/world' - u'http://tech.cnn.com' - ... - -Extracting Source feeds ------------------------ - -.. code-block:: pycon - - >>> for feed_url in cnn_paper.feed_urls(): - >>> print(feed_url) - - u'http://rss.cnn.com/rss/cnn_crime.rss' - u'http://rss.cnn.com/rss/cnn_tech.rss' - ... - -Extracting Source brand & description -------------------------------------- - -.. code-block:: pycon - - >>> print(cnn_paper.brand) - u'cnn' - - >>> print(cnn_paper.description) - u'CNN.com delivers the latest breaking news and information on the latest...' - -News Articles -------------- - -Article objects are abstractions of news articles. For example, a news ``Source`` -would be CNN while a news ``Article`` would be a specific CNN article. -You may reference an ``Article`` from an existing news ``Source`` or initialize -one by itself. - -Referencing it from a ``Source``. - -.. code-block:: pycon - - >>> first_article = cnn_paper.articles[0] - -Initializing an ``Article`` by itself. - -.. code-block:: pycon - - >>> from newspaper import Article - >>> first_article = Article(url="http://www.lemonde.fr/...", language='fr') - - -Note the similar ``language=`` named paramater above. All the config parameters as described for ``Source`` objects also apply for ``Article`` objects! **Source and Article objects have a very similar api**. - -There are endless possibilities on how we can manipulate and build articles. - -Downloading an Article ----------------------- - -We begin by calling ``download()`` on an article. If you are interested in how to -quickly download articles concurrently with multi-threading check out the -:ref:`advanced ` section. - -.. code-block:: pycon - - >>> first_article = cnn_paper.articles[0] - - >>> first_article.download() - - >>> print(first_article.html) - u'