Group Abstract Group Abstract

Message Boards Message Boards

Avoid "data not available" in a Wolfram|Alpha API?

Posted 9 years ago

Despite the wolframalpha.com giving correct results, any API query of the same exact text

import wolframalpha
client = wolframalpha.Client(abc-123')
res = client.query("cost of living index Austin, TX")
res_string = next(res.results).text
print(res_string)

which prints the (data not available) even though on wolframalpha.com it works fine. Why's that? How fix?

POSTED BY: John A
Posted 9 years ago
POSTED BY: John A
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard