switch wikipedia to https
parent
ec32741826
commit
ce2d548ff4
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue