import urllib.request
import json
def poiskpers(nick):
geourl = "http://kakoito.sait/"+nick
respornse = urllib.request.urlopen(geourl)
content = respornse.read()
data = json.loads(content.decode("utf8"))
print(data)
print(poiskpers("василий"))
from urllib import request
from urllib.parse import quote
def poiskpers(nick):
geourl = "http://ru.wikipedia.org/wiki/{0}".format(quote(nick))
respornse = request.urlopen(geourl)
content = respornse.read()
return content
print(poiskpers("василий"))