Python wrapper around the Security Trails API
Project description
pysecuritytrails
Python3 wrapper for the Security Trails API https://securitytrails.com/
Installation
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://securitytrails.com/corp/apidocs
List of Functions Implemented
ping()
: You can use this simple endpoint to test your authentication and access to the SecurityTrails API.scroll(scroll_id)
: A fast and easy way to fetch many resultsdomain_info(HOSTNAME)
: Returns the current data about the given domain.domain_subdomains(HOSTNAME)
: Returns subdomains for a given hostnamedomain_tags(HOSTNAME)
: Returns tags for a given hostnamedomain_associated(HOSTNAME, PAGE)
: Find all domains that are related to a domain you inputdomain_whois(HOSTNAME)
: Returns the current WHOIS data about a given domain with the stats merged togetherdomain_search(FILTER, INCLUDE_IPS, PAGE)
: Filter and search specific records using this endpoint.domain_search_sql(QUERY, INCLUDE_IPS, PAGE, SCROLL)
: Filter and search specific records using our DSL with this endpointdomain_search_stats(FILTER)
: Show statistics of a researchdomain_history_dns(HOSTNAME, TYPE, PAGE)
: Lists out specific historical information about the given hostname parameterips_nearby(IP)
: Returns the neighbors in any given IP level range and essentially allows you to explore closeby IP addresses.ips_search_dsl(IP, PAGE)
: Search for an IP address using DSLips_search_stats(QUERY)
: Stats on a DSL queryfeeds_domains(TYPE, FILTER, TLD, NS)
: Fetch zone files including authoritative nameservers with ease
License
This code is licensed under GPLv3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysecuritytrails-0.1.2.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for pysecuritytrails-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df53de6556320da7e94233b052c438aaf727837b7d75207f6d8a7ef6aa8912d4 |
|
MD5 | bf014d79cd79216ab67e73ba461e31e1 |
|
BLAKE2b-256 | e5f6c7c87d55beb40aea6f28891785c72b4748531a98baf334a13b99effe7ded |