From cd9eb90ce3ded7881670fae5066fcd8dfd24f83d Mon Sep 17 00:00:00 2001 From: Castro0o Date: Thu, 7 May 2015 08:59:05 +0200 Subject: [PATCH] update --- mmdc_modules.py | 3 +++ mmdc_wiki2web.py | 5 +++-- web/index.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mmdc_modules.py b/mmdc_modules.py index 86ebd1a..8a3c9d4 100644 --- a/mmdc_modules.py +++ b/mmdc_modules.py @@ -13,6 +13,9 @@ endpoint = "http://pzwiki.wdka.nl/mw-mediadesign/api.php?format=json&" # API MODULES def api_request(action, pagename): #get page: content, metadata, images, imageifnp + pagename = urllib.quote(pagename.encode('utf-8')) + print pagename + url = endpoint + (action.format(pagename)) # print 'API REQUEST', url request = urllib2.urlopen(url) diff --git a/mmdc_wiki2web.py b/mmdc_wiki2web.py index 07b0e3a..e83a16e 100755 --- a/mmdc_wiki2web.py +++ b/mmdc_wiki2web.py @@ -62,7 +62,7 @@ index_container = index_tree.find(".//div[@class='isotope']") #maybe id is impor # CREATE PAGE ######## for member in memberpages: - #print member + print ' member', member # download mw work page # pageid=member['pageid'] # pagetitle=(member['title'].encode('utf-8')) @@ -85,7 +85,8 @@ for member in memberpages: thumbnail=workdict['Thumbnail'], bio=(workdict['Bio']), description=(workdict['Description']), - extra=(workdict['Extra']) ) + extra=( workdict['Extra'] ) + ) # parse workpage_html # process html: img full url tree = html5lib.parse(workpage_html, namespaceHTMLElements=False) diff --git a/web/index.html b/web/index.html index 1e34050..38376e1 100644 --- a/web/index.html +++ b/web/index.html @@ -102,7 +102,7 @@ <div class="item video flash"><img src="img/project_roel2.png"></div> <div class="item narrative"><img src="img/project_andre.jpeg"></div--> -
+