Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Bulk Query Example on Readme #56

Open
ndanielsen opened this issue Oct 18, 2017 · 0 comments
Open

Update Bulk Query Example on Readme #56

ndanielsen opened this issue Oct 18, 2017 · 0 comments

Comments

@ndanielsen
Copy link

The example in the readme does not work for me on python 3.4.

Here's an example that does work for me -- just sharing.

import codecs

reader = codecs.getreader("utf-8")

for result in bulk.get_all_results_for_query_batch(batch):
    converted_result = IteratorBytesIO(result)
    result_list = json.load(reader(converted_result))
    for row in result_list:
        print(row) # dictionary rows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant