chg: [tools] Common User-Agent string

This commit is contained in:
Alexandre Dulaunoy 2024-02-11 16:32:40 +01:00
parent 8723a786e2
commit 581a86c3d4
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD
3 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ from optparse import OptionParser
# print sys.stdout.encoding # print sys.stdout.encoding
version = "0.2" 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): def date_as_rfc(value):

View file

@ -16,7 +16,7 @@ import time
import datetime import datetime
from optparse import OptionParser 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)" usage = "usage: %prog url(s)"
parser = OptionParser(usage) parser = OptionParser(usage)

View file

@ -26,7 +26,7 @@ from optparse import OptionParser
import html import html
from bs4 import BeautifulSoup 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"): def RenderMerge(itemlist, output="text"):