https://www.wikidata.org/wiki/Special:EntityData/P248.json

def wikidata_get(identifier):
    """
        https://www.wikidata.org/wiki/Special:EntityData/P248.json
    """
    url = 'https://www.wikidata.org/wiki/Special:EntityData/{}.json'.format(identifier)
    #logging.info(url)
    return json.loads(requests.get(url).content)