Page 14 sur 23
L'API Wikidata
https://pypi.org/project/Wikidata/
from wikidata.client import Client client = Client() entity = client.get('Q1617977', load=True) print(entity) print(entity.description) print(entity.data) url_fr = entity.data['sitelinks']['frwiki']['url'] print(url_fr) image_prop = client.get('P18') image = entity[image_prop] print(image.image_resolution) print(image.image_url) print(entity.__dict__)