Use the api of mediawiki instead of parsing the html