I want to grep all the content of the "United States of America" to a text file without images. I am looking a response in text format.
How can I do that? I got this url constructed: http://en.wikipedia.org/w/api.php?format=xml&action=query&titles=united_states&prop=revisions&rvprop=content
But I am not getting what I want. Maybe I'm missing some basic things.
How can I get the content of whatever string I give in the query? Please help me with the URL.
I am trying to have this in a text file. Can I get the response in text format? Other than XML and JSON?
In the United States example, I want to get the first column of the cities Leading population centers. Is it possible to get that information (or) should I use the parser?