switch wikipedia to https

master
mutantmonkey 2012-06-15 20:04:29 -07:00
parent ec32741826
commit ce2d548ff4
1 changed files with 3 additions and 3 deletions

View File

@ -10,9 +10,9 @@ http://inamidst.com/phenny/
import re, urllib.request, urllib.parse, urllib.error, gzip, io import re, urllib.request, urllib.parse, urllib.error, gzip, io
import wiki import wiki
wikiapi = 'http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch={0}&limit=1&prop=snippet&format=json' wikiapi = 'https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch={0}&limit=1&prop=snippet&format=json'
wikiuri = 'http://en.wikipedia.org/wiki/{0}' wikiuri = 'https://en.wikipedia.org/wiki/{0}'
wikisearch = 'http://en.wikipedia.org/wiki/Special:Search?' \ wikisearch = 'https://en.wikipedia.org/wiki/Special:Search?' \
+ 'search={0}&fulltext=Search' + 'search={0}&fulltext=Search'
def wik(phenny, input): def wik(phenny, input):