API reference¶
PhishtankLookup¶
- class pyphishtanklookup.PhishtankLookup(root_url: str = 'https://phishtankapi.circl.lu/')¶
- get_asns() list[str] ¶
Returns the ASNs
- get_ccs() list[str] ¶
Returns the Country Codes
- get_ips() list[str] ¶
Returns the IPs
- get_url_entry(url: str, pythonify: bool = False) dict[str, Any] ¶
Returns all URL entry
- Parameters:
url – URL to search.
pythonify – Convert the response to Python objects/integers/bools
- get_urls() list[str] ¶
Returns the URLs
- get_urls_by_asn(asn: str | int) list[str] ¶
Returns the URLs by ASN
- Parameters:
asn – The Autonomus System Number
- get_urls_by_cc(cc: str) list[str] ¶
Returns the URLs by Country Code
- Parameters:
cc – Country code (ex: LU)
- get_urls_by_ip(ip: str) list[str] ¶
Returns the URLs by IP
- Parameters:
ip – The IP address
- info() dict[str, Any] ¶
Get information about the instance
- property is_up: bool¶
Test if the given instance is accessible
- redis_up() dict[str, Any] ¶
Check if redis is up and running