diff --git a/sync.json.inc b/sync.json.inc index d1045b8..2cea70b 100644 --- a/sync.json.inc +++ b/sync.json.inc @@ -1,7 +1,7 @@ { "username": "", "password": "", - "site": "wiki.mozilla.org/api.php", + "site": "wiki.mozilla.org", "useragent": "Infosec wiki updater, based on mwclient", "repos": "https://github.com/mozilla/wikimo_content", "basedir" : ".", diff --git a/sync.py b/sync.py index 7abb8b0..709ab3f 100755 --- a/sync.py +++ b/sync.py @@ -26,7 +26,7 @@ import getopt import subprocess def connect(config): - site = mwclient.Site((config['site']), clients_useragent=config['useragent']) + site = mwclient.Site((config['site']), path='/', clients_useragent=config['useragent']) site.login(config['username'], config['password']) return site