diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-02-01 10:57:40 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-02-01 10:57:40 +0100 |
commit | 3c010414c31fc93ccd5f40c4ae98c585e444bb86 (patch) | |
tree | f253d0637a8cae32ac371cfb42dc5beadf7898f5 | |
parent | Updated doc: added the new feature, language detection. (diff) | |
download | newspipe-3c010414c31fc93ccd5f40c4ae98c585e444bb86.tar.gz newspipe-3c010414c31fc93ccd5f40c4ae98c585e444bb86.tar.bz2 newspipe-3c010414c31fc93ccd5f40c4ae98c585e444bb86.zip |
Updated README with just information about the required modules for the language detection.
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | source/mongodb.py | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -19,6 +19,7 @@ Features * e-mail notification; * export articles to HTML, EPUB, PDF or raw text; * favorite articles; +* language detection; * share articles with Diaspora, Google +, Pinboard, Identi.ca, Digg, reddit, Scoopeo, and Blogmarks; * generation of QR codes with URLs of articles. @@ -38,6 +39,7 @@ Optional module These modules are not required but enables more features: +* [guess_language](https://bitbucket.org/spirit/guess_language/) and [PyEnchant](http://pypi.python.org/pypi/pyenchant) for the language detection; * lxml and Genshi; * Python Imaging Library for the generation of QR codes. diff --git a/source/mongodb.py b/source/mongodb.py index 93894154..1c5ddf2a 100644 --- a/source/mongodb.py +++ b/source/mongodb.py @@ -45,7 +45,7 @@ class Articles(object): Creates a new collection for a new feed. """ collection = self.db[new_collection["feed_id"]] - collection.create_index([("article_date", pymongo.DESCENDING)], {"unique":False, "sparse":False}) + #collection.create_index([("article_date", pymongo.DESCENDING)], {"unique":False, "sparse":False}) collection.ensure_index('article_content', pymongo.ASCENDING) collection.insert(new_collection) @@ -281,4 +281,4 @@ if __name__ == "__main__": # Drop the database - #articles.drop_database()
\ No newline at end of file + #articles.drop_database() |