diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2013-12-26 17:12:09 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2013-12-26 17:12:09 +0100 |
commit | 93c1593674095e7569c684d08ebe1b996a63a7ec (patch) | |
tree | 3bc923ebbe0277e306f3154b5c28442c98c0abf7 /pyaggr3g470r | |
parent | Only append the article to list if the saving with MongoEngine has been succe... (diff) | |
download | newspipe-93c1593674095e7569c684d08ebe1b996a63a7ec.tar.gz newspipe-93c1593674095e7569c684d08ebe1b996a63a7ec.tar.bz2 newspipe-93c1593674095e7569c684d08ebe1b996a63a7ec.zip |
Uses the user agent defined in the configuration file.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/feedgetter.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py index 7b157211..c7f7f81e 100644 --- a/pyaggr3g470r/feedgetter.py +++ b/pyaggr3g470r/feedgetter.py @@ -57,8 +57,7 @@ class FeedGetter(object): """ Initializes the database connection. """ - #feedparser.USER_AGENT = conf.USER_AGENT - feedparser.USER_AGENT = "pyAggr3g470r" + feedparser.USER_AGENT = conf.USER_AGENT if conf.HTTP_PROXY == "": self.proxy = urllib2.ProxyHandler({}) else: |