Skip to main content

pysecuritytrails

Python3 wrapper for the Security Trails API https://securitytrails.com/

Installation

You can install it directly from the pypi package : pip install pysecuritytrails

You can also install the last version of the source code:

git clone https://github.com/Te-k/pysecuritytrails.git
cd pysecuritytrails
pip install .

Usage

from pysecuritytrails import SecurityTrails, SecurityTrailsError
st = SecurityTrails('APIKEYHERE')

# Check that it is working
try:
    st.ping()
except SecurityTrailsError:
    print('Ping failed')
    sys.exit(1)

infos = st.domain_info('securitytrails.com')
subdomains = st.domain_subdomains('securitytrails.com')
tags = st.domain_tags('securitytrails.com')
whois = st.domain_whois('securitytrails.com')
history_dns = st.domain_history_dns('securitytrails.com')
history_whois = st.domain_history_whois('securitytrails.com')

For more information on the API, check https://docs.securitytrails.com/reference

List of Functions Implemented

License

This code is licensed under GPLv3

Metadata

Release files for pysecuritytrails 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysecuritytrails 0.1.3
File Size Uploaded
pysecuritytrails-0.1.3.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysecuritytrails 0.1.3
File Interpreter ABI Platform
pysecuritytrails-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 27.5 kB

Release files / pysecuritytrails-0.1.3.tar.gz

Download URL pysecuritytrails-0.1.3.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
af6d47b5df82a2cc1648f441d3552615b7c017a78323c4e5a6a5db1343771bcf
BLAKE2b-256 checksum
How to use checksums
73aeffa6025f5ec32bd8a04e4647b2cab36f0a477c788508b7a14fa2ab439726
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

Release files / pysecuritytrails-0.1.3-py3-none-any.whl

Download URL pysecuritytrails-0.1.3-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cc350f5fdc8bb1f52063f24c6fa3da1e32c87de51c0330e3740646a41f0cd11
BLAKE2b-256 checksum
How to use checksums
7a4c6502b9342436f0cd2e2aca87afb5f2f95ea1b9ba2b7c4a0b8c1a1edea29a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page