Commit d0e33af0 by murtaugh

wikifeedr

parent facf5ff5
Showing with 7 additions and 5 deletions
......@@ -122,7 +122,7 @@ class SitePage (object):
result = result['cargoquery']
if len(result) > 0:
result = result[0]['title']
self.page = wiki.pages[result['pageName']]
self.page = self.wiki.pages[result['pageName']]
self.title = result['Title']
self.updated = result['Updated']
else:
......@@ -181,7 +181,10 @@ class SitePage (object):
|Updated={updated}
|Source={source}
|Thumbnail={thumbnail}
}}}}\n""".format(
}}}}
[[Catégorie:Site]]
""".format(
url=item.link,
title=item.title,
updated=ts.strftime("%Y/%m/%d %H:%M:%S"),
......@@ -337,7 +340,7 @@ if __name__ == "__main__":
# print (page.name)
if args.source:
flux = FluxPage(site, args.source)
flux.process_feed(args.cachedir, args.limit, phpuploader=args.phpimportimages)
flux.process_feed(args.cachedir, limit=args.limit, phpuploader=args.phpimportimages)
else:
print ("Processing all feeds", file=sys.stderr)
for i, f in enumerate(FluxPage.get_all(site)):
......@@ -347,5 +350,5 @@ if __name__ == "__main__":
print ("last_updated: {0}".format(f.last_updated), file=sys.stderr)
else:
print ("last_updated: ---", file=sys.stderr)
f.process_feed(args.cachedir, limit=args.limit, phpuploader=args.phpimportimages, user=args.user)
print (file=sys.stderr)
f.process_feed(args.cachedir, args.limit, phpuploader=args.phpimportimages, user=args.user)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment