For example using this Wikipedia dump:
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=lebron%20james&rvprop=content&redirects=t
I would say look at using Beautiful Soup and just get the Wikipedia page in HTML instead of using the API.
I'll try and post an example.