Writing a command line tool to query Wikipedia runs somewhere between “hello world” and “I have nothing better to do in life”.
Using dig to run a DNS query for the TXT record, returning a short summary of the entry: wicked clever!
dig +short txt <keyword>.wp.dg.cx