Skip to main content

Library that questions whether a site is phishing or not

Project description

PHISHING DETECTOR

Phishing Detector is a library that can be used to detect phishing websites. You can query any website and find out if it is a phishing site within one line of code.

Note: In order to use this library, you must have an API key of Phishing Detector. For more information check our blog post.

Setup

pip install phishing_detector

Usage

  • Single URL Query
from phishing_detector import Detector

# while initializing the detector, you should pass your api_key as a parameter
# if you don't have an api_key, you can get one from your profile page:
# http://phishingdetector.live/profile/
detector = Detector(api_key)

detector.query('https://google.com') # it returns Legitimate or Phishing
  • Multiple URL Query by File
from phishing_detector import Detector

# while initializing the detector, you should pass your api_key as a parameter
# if you don't have an api_key, you can get one from your profile page:
# http://phishingdetector.live/profile/
detector = Detector(api_key)

# it creates a new column in the input file and saves the results in this column
# it saves into the input file by default
detector.query_by_file("input.csv")

# also you can set an output filename and save the results in a new file
detector.query_by_file("input.csv", output_file="output.csv")

# to query the urls inside a file, multithreading is used to speed up the process
# by default, max_workers is set to 10, but you can change it
detector.query_by_file("input.csv", output_file="output.csv", max_workers=20)
  • Multiple URL Query by List
from phishing_detector import Detector

# while initializing the detector, you should pass your api_key as a parameter
# if you don't have an api_key, you can get one from your profile page:
# http://phishingdetector.live/profile/
detector = Detector(api_key)

url_list = ["https://www.google.com", "https://www.facebook.com"]

# it creates the output file and saves the results in this file
detector.query_by_list(url_list, output_file="output.csv")

# to query the urls inside a list, multithreading is used to speed up the process
# by default, max_workers is set to 10, but you can change it
detector.query_by_list(url_list, output_file="output.csv", max_workers=20)

Requirements

In order to work this library properly, following libraries must be installed on your computer:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phishing_detector-0.1.1.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file phishing_detector-0.1.1.tar.gz.

File metadata

  • Download URL: phishing_detector-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for phishing_detector-0.1.1.tar.gz
Algorithm Hash digest
SHA256 46b63f1d915915b72fc25955f29c878f142f2c3dd14a8b8dab38b0c0e10faed8
MD5 405f1235c215105587ee94bbaa57bf49
BLAKE2b-256 dcef8544ac718c1617f6c046bc7ccc89f7b5418d8a7f54470df1db09aa88425b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page