|
@ -168,7 +168,7 @@ class WikiApp(Flask): |
|
|
homepage_content = '' |
|
|
homepage_content = '' |
|
|
for page in pages: |
|
|
for page in pages: |
|
|
# Make a request to MediaWiki API to get content of a specific page |
|
|
# Make a request to MediaWiki API to get content of a specific page |
|
|
response = requests.get(self.MEDIAWIKI_BASE_URL + self.BASE_API, params={'action': 'parse', 'page': page, 'format': 'json'}, proxies={'http':'http://wiki.conceptnull.org/','https':'https://wiki.conceptnull.org/'}) |
|
|
response = requests.get(self.MEDIAWIKI_BASE_URL + self.BASE_API, params={'action': 'parse', 'page': page, 'format': 'json'}, proxies={'http':'http://wiki.conceptnull.org','https':'https://wiki.conceptnull.org'}) |
|
|
data = response.json() |
|
|
data = response.json() |
|
|
# Extract page title and content |
|
|
# Extract page title and content |
|
|
page_content = data['parse']['text']['*'] |
|
|
page_content = data['parse']['text']['*'] |
|
|