From 581a86c3d4618a107daaa90a9c46ed2423bce7bc Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sun, 11 Feb 2024 16:32:40 +0100 Subject: [PATCH] chg: [tools] Common User-Agent string --- bin/rsscluster.py | 2 +- bin/rsscount.py | 2 +- bin/rssmerge.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/rsscluster.py b/bin/rsscluster.py index b6e2d8a..4950491 100644 --- a/bin/rsscluster.py +++ b/bin/rsscluster.py @@ -24,7 +24,7 @@ # print sys.stdout.encoding version = "0.2" -feedparser.USER_AGENT = "rsscluster.py " + version + " +http://www.foo.be/" +feedparser.USER_AGENT = "rsscluster.py " + version + " +https://github.com/adulau/rss-tools" def date_as_rfc(value): diff --git a/bin/rsscount.py b/bin/rsscount.py index f9d3f5f..e21ae57 100644 --- a/bin/rsscount.py +++ b/bin/rsscount.py @@ -16,7 +16,7 @@ import datetime from optparse import OptionParser -feedparser.USER_AGENT = "rsscount.py +http://www.foo.be/" +feedparser.USER_AGENT = "rsscount.py +https://github.com/adulau/rss-tools" usage = "usage: %prog url(s)" parser = OptionParser(usage) diff --git a/bin/rssmerge.py b/bin/rssmerge.py index 8d04f5c..fcda30b 100644 --- a/bin/rssmerge.py +++ b/bin/rssmerge.py @@ -26,7 +26,7 @@ import html from bs4 import BeautifulSoup -feedparser.USER_AGENT = "rssmerge.py +http://www.foo.be/" +feedparser.USER_AGENT = "rssmerge.py +https://github.com/adulau/rss-tools" def RenderMerge(itemlist, output="text"):