parent
26c91070f5
commit
25fdca4bf0
|
@ -643,6 +643,17 @@ def After(rss, options):
|
||||||
else:
|
else:
|
||||||
return rss.tostring(xml_declaration=True, encoding='UTF-8')
|
return rss.tostring(xml_declaration=True, encoding='UTF-8')
|
||||||
|
|
||||||
|
def process(url, cache, options=None):
|
||||||
|
if options == None:
|
||||||
|
options = []
|
||||||
|
|
||||||
|
options = Options(options)
|
||||||
|
url, cache = Init(url, cache, options)
|
||||||
|
rss = Fetch(url, cache, options)
|
||||||
|
rss = Gather(rss, url, cache, options)
|
||||||
|
|
||||||
|
return After(rss, options)
|
||||||
|
|
||||||
def cgi_app(environ, start_response):
|
def cgi_app(environ, start_response):
|
||||||
# get options
|
# get options
|
||||||
if 'REQUEST_URI' in environ:
|
if 'REQUEST_URI' in environ:
|
||||||
|
|
Loading…
Reference in New Issue