Skip to content

vector-sec/python-urlscan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

python-urlscan

Simple python class to interface with UrlScan.io

Usage

from urlscan import *

#Public scan, default useragent, no referer
u = UrlScan("apikey","https://google.com")
#Private scan, default useragent, no referer
u = UrlScan("apikey","https://google.com",public=False)
#Private scan, custom useragent, no referer
u = UrlScan("apikey","https://google.com",public=False,useragent="python-urlscan")
#Private scan, custom useragent, custom referer
u = UrlScan("apikey","https://google.com",public=False,useragent="python-urlscan",referer="https://github.com")

#Starting a scan
u.submit() #Wait a few seconds for the scan to complete, you can check with u.checkStatus()

#Getting the DOM
dom = u.getDom()

#Getting the screenshot
screenshot = u.getScreenshot()

About

Simple python class to interface with UrlScan.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages