mirror of
https://github.com/adulau/rss-tools.git
synced 2024-12-04 15:57:12 +00:00
chg: [tools] Common User-Agent string
This commit is contained in:
parent
8723a786e2
commit
581a86c3d4
3 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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"):
|
||||||
|
|
Loading…
Reference in a new issue