script to parse wikitext from CLI