Skip to content

0.0.5 - Proxy Support

Compare
Choose a tag to compare
released this 05 May 15:44
· 150 commits to master since this release
89e53c8

0.0.5

This PR adds support for HTTP(S) and SOCKS proxies using PySocks.

This addresses issue #7.

Main Changes

  • Bumped version to 0.0.5
  • Added PROXIES parameter to Virustotal __init__ method. This parameter takes a dict object containing HTTP(S) or SOCKS proxies.
  • Added example usage to examples.py.
  • Updated changelog.
  • Updated dependencies for PySocks.

Example usage is extracted from requests proxies and requests socks documentation.

This release can now be installed through pip using pip(3) install virustotal-python 👍 Enjoy!

New usage:

# NEW as of version 0.0.5: Proxy support.
# Example Usage: Using HTTP(S)
vtotal = Virustotal(
    "Insert API Key Here.",
    {"http": "http://10.10.1.10:3128", "https": "http://10.10.1.10:1080"})
# Or using SOCKS
vtotal = Virustotal(
    "Insert API Key Here.",
    {"http": "socks5://user:pass@host:port", "https": "socks5://user:pass@host:port"})