From 07a8a2d804f8af158b05db955cfcc3fafbadc331 Mon Sep 17 00:00:00 2001 From: Isaac Smith Date: Sat, 14 May 2016 19:28:50 -0400 Subject: [PATCH] Update example --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index babdfbc..c0a28ed 100644 --- a/README.rst +++ b/README.rst @@ -47,7 +47,7 @@ Pod objects have `subpods` (a Subpod is a specific response with the plaintext r You may also query for simply the pods which have 'Result' titles or are marked as 'primary':: - print(res.results[0]) + print(res.results[0].text[0]) The interface as it is now does not have code built for accessing every piece of information that the Wolfram Alpha API could return. As such, every class has a copy of the original structure that it is supposed to parse. This copy is placed in a variable called node for every class but the Result class, whose variable is named tree. If there is information from the Wolfram Alpha API that you need for your program that this interface does not provide an exact function for then you can still gain access to that information through the previously mentioned variables; you'll just have to handle the API directly until the functionality you seek is built.