diff options
Diffstat (limited to 'source/feedgetter.py')
-rwxr-xr-x | source/feedgetter.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/feedgetter.py b/source/feedgetter.py index 24d0640c..a2cdb752 100755 --- a/source/feedgetter.py +++ b/source/feedgetter.py @@ -20,9 +20,9 @@ # along with this program. If not, see <http://www.gnu.org/licenses/> __author__ = "Cedric Bonhomme" -__version__ = "$Revision: 1.7 $" +__version__ = "$Revision: 1.8 $" __date__ = "$Date: 2010/09/02 $" -__revision__ = "$Date: 2013/08/11 $" +__revision__ = "$Date: 2013/08/15 $" __copyright__ = "Copyright (c) Cedric Bonhomme" __license__ = "GPLv3" @@ -70,6 +70,7 @@ class FeedGetter(object): self.proxy = urllib.request.ProxyHandler({}) else: self.proxy = urllib.request.ProxyHandler({"http":conf.HTTP_PROXY}) + feedparser.USER_AGENT = conf.USER_AGENT def retrieve_feed(self, feed_url=None, feed_original=None): """ @@ -219,4 +220,4 @@ if __name__ == "__main__": # For a blogspot blog: #feed_getter.retrieve_feed("http://www.blogger.com/feeds/4195135246107166251/posts/default", "http://neopythonic.blogspot.com/feeds/posts/default") - #feed_getter.retrieve_feed("http://www.blogger.com/feeds/8699431508730375743/posts/default", "http://python-history.blogspot.com/feeds/posts/default") + #feed_getter.retrieve_feed("http://www.blogger.com/feeds/8699431508730375743/posts/default", "http://python-history.blogspot.com/feeds/posts/default")
\ No newline at end of file |