From f1816d5c01549e7d371348eaf0f66a32487edf19 Mon Sep 17 00:00:00 2001 From: Cailean Finn Date: Fri, 10 May 2024 17:13:41 +0100 Subject: [PATCH] https --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index f540da5..f0a0bc2 100644 --- a/app.py +++ b/app.py @@ -168,7 +168,7 @@ class WikiApp(Flask): homepage_content = '' for page in pages: # 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':'','https':''}) + 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() # Extract page title and content page_content = data['parse']['text']['*']