docs/advanced-usage.rst
raw| 1 | Advanced Usage |
| 2 | ============== |
| 3 | |
| 4 | Proxies |
| 5 | ------- |
| 6 | |
| 7 | If you need to use a proxy, you can configure resource indexes with the proxies argument: |
| 8 | |
| 9 | .. code:: python |
| 10 | |
| 11 | from censys.search import CensysHosts |
| 12 | |
| 13 | proxies = { |
| 14 | "https": "http://10.10.1.10:1080", |
| 15 | } |
| 16 | |
| 17 | c = CensysHosts(proxies=proxies) |
| 18 | |
| 19 | c.account() |
| 20 | |
| 21 | .. note:: |
| 22 | |
| 23 | HTTP proxies will be ignored in favor of HTTPS proxies. |
| 24 | |
| 25 | See Requests :ref:`requests:proxies` for more information on the format of proxies. |