0.0.5 - Proxy Support
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 adict
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"})