alexz-enwp / wikitools

Python package for working with MediaWiki wikis
105 stars 51 forks source link

Add a getEntities function #42

Open brianckeegan opened 8 years ago

brianckeegan commented 8 years ago

This (very roughly) implements a getEntities function to retrieve semantic data from a WikiData-like site. Example:

import wikitools as wt
wikidata_site = wt.wiki.Wiki(url='https://www.wikidata.org/w/api.php')
wt.page.Page(site=wikidata_site,title='2016 Central Italy earthquake',followRedir=False).getEntities()