# How to use helpers.scan with python requests?

**URL:** <https://discuss.elastic.co/t/how-to-use-helpers-scan-with-python-requests/152871>\
**Category:** Elasticsearch\
**Created:** [October 17, 2018, 3:27pm UTC](https://discuss.elastic.co/t/how-to-use-helpers-scan-with-python-requests/152871 "2018-10-17T15:27:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elastic\_paul](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@elastic\_paul](https://discuss.elastic.co/u/elastic_paul)\
**Post date:** [October 17, 2018, 3:27pm UTC](https://discuss.elastic.co/t/how-to-use-helpers-scan-with-python-requests/152871/1 "2018-10-17T15:27:09Z")

</div>

I have a working script to query my ES cluster, using the Requests library. I am using Requests because I have issues with both proxies and with HTTPS certificates. All of this works with Requests.  
eg;

```auto
response = requests.get( es_path, data=query, auth=( userid, passwd ), proxies=proxies, verify=cert_file, headers=headers )

```

However for some bigger queries I need to use helpers.scan and although I can see examples for this with the python Elasticsearch client, I can not work out how to do this with the Requests library.

I can't use the Elasticsearch python client because I can not get it to work with proxy and self-signed cert.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 14, 2018, 3:27pm UTC](https://discuss.elastic.co/t/how-to-use-helpers-scan-with-python-requests/152871/2 "2018-11-14T15:27:09Z")

</div>

Closed on November 14, 2018, 3:27pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
