diff options
author | cedricbonhomme <devnull@localhost> | 2010-09-17 11:26:33 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-09-17 11:26:33 +0200 |
commit | 89d3ba74fa60714b480b94c33781f036e4449caf (patch) | |
tree | d4376398062be54b19fb6729ebecaec4c25149fd | |
parent | Little bigger QRCode for longer URLs. (diff) | |
download | newspipe-89d3ba74fa60714b480b94c33781f036e4449caf.tar.gz newspipe-89d3ba74fa60714b480b94c33781f036e4449caf.tar.bz2 newspipe-89d3ba74fa60714b480b94c33781f036e4449caf.zip |
Minor bugfix in topwords() function.
-rwxr-xr-x | utils.py | 2 | ||||
-rwxr-xr-x | var/feed.lst | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -121,7 +121,7 @@ def top_words(dic_articles, n=10, size=5): for article in dic_articles[rss_feed_id]: words_gen.extend([word.strip(punctuation).lower() \ for word in clear_string(article[4].encode('utf-8')).split() \ - if len(word) > size]) + if len(word) >= size]) words = Counter() for word in words_gen: words[word] += 1 diff --git a/var/feed.lst b/var/feed.lst index 9e7f4ee7..241878b1 100755 --- a/var/feed.lst +++ b/var/feed.lst @@ -28,3 +28,5 @@ http://linuxfr.org/backend/journaux/rss20.rss http://www.le-tigre.net/spip.php?page=backend http://www.schneier.com/blog/index.rdf http://www.handcrafted-games.com/index.php?feed/atom +http://feeds.feedburner.com/quuxlabs + |