ipsurv.requester package

IpSurv’s Module Index

ipsurv.requester.requester module

class Requester(timeout=None)

Bases: abc.ABC

Description: https://deer-hunt.github.io/ipsurv/pages/ipsurv-cmd/program_architecture_classes.html#requester

get_host()

ipsurv.requester.dns_resolver module

class DnsResolveRequester(resolver=None, timeout=4.0)

Bases: ipsurv.requester.requester.Requester

Parameters
  • resolver (dns.resolver) –

  • timeout (float) –

Description: https://deer-hunt.github.io/ipsurv/pages/ipsurv-cmd/program_architecture_classes.html#requester

get_resolver()
request_dnstxt(ip)
request_resolve(hostname)
request_reverse(ip)
resolve_ip(hostname, port=None)

ipsurv.requester.http module

class HttpRequester(timeout=None)

Bases: ipsurv.requester.requester.Requester

Parameters

timeout (float) –

Description: https://deer-hunt.github.io/ipsurv/pages/ipsurv-cmd/program_architecture_classes.html#requester

request(url, default_encoding='utf-8')
request_alpn_h2(url, port=443)
request_http(url)
set_headers(headers)

ipsurv.requester.ip_info module

class IpInfoRequester(timeout=None, token=None)

Bases: ipsurv.requester.requester.Requester

Parameters
  • timeout (float) –

  • token (str) –

Description: https://deer-hunt.github.io/ipsurv/pages/ipsurv-cmd/program_architecture_classes.html#requester

request(ip)
request_ip(ip)
set_headers(headers)

ipsurv.requester.rdap module

class RdapRequester(country_detector, fill=True, timeout=None)

Bases: ipsurv.requester.requester.Requester

Parameters
  • country_detector (CountryDetector) –

  • fill (bool) –

  • timeout (float) –

Description: https://deer-hunt.github.io/ipsurv/pages/ipsurv-cmd/program_architecture_classes.html#requester

detect_server_from_ip(ip)
request(ip, url=None)
request_http(url, n=1, max_redirect=5)
request_ip(url, ip=None)
class CountryDetector

Bases: object

Detecting country code by address.

detect_by_address(v)
detect_by_country(word)

ipsurv.requester.server_reactivity module

class ServerReactivity(timeout=4.0)

Bases: ipsurv.requester.requester.Requester

Parameters

timeout (float) –

Description: https://deer-hunt.github.io/ipsurv/pages/ipsurv-cmd/program_architecture_classes.html#requester

request_icmp(host, count=1)
request_local_ip(ip='8.8.8.8', port=53)
request_tcpport(host, port)
request_udpport(host, port)

ipsurv.requester.geoip module

class GeoIpRequester

Bases: ipsurv.requester.requester.Requester

Description: https://deer-hunt.github.io/ipsurv/pages/ipsurv-cmd/using_geoip2.html

TYPE_ASN = 'asn'
TYPE_CITY = 'city'
TYPE_COUNTRY = 'country'
detect_file(files, gtype, candidates)
detect_files(files)
get_data_path(path)
initialize(data_path=None, data_files=None)
request(ip)
request_asn(ip)
request_city(ip)
request_country(ip)