def search_custom(self,camera_type, url_scheme = '', check_empty_url='',check_empty = True, tag=True, search_q="webcams"): """ :param camera_type: string, the type of camera. this string must appear in the data returned by shodan :param url_scheme: string, the format in which the result will be displayed :param check_empty_url: string, the format that leads to an image that could be downloaded :param check_empty: boolean, indicates whether or not you want to check if the image is completly black or white :param tag: boolean, indicates whether or not you want to generate descriptions for the image :param search_q: string, the term to search for in shodan """ Scanner.search(camera_type=camera_type,url_scheme=url_scheme,check_empty_url=check_empty_url, check_empty=check_empty,tag=tag,search_q=search_q)
def search(self,preset,check=True,tag=True): """ :param preset: string, the type of pre written camera you want. choose from: 1)"webcamXP" 2)"MJPG 3)"yawCam" :param check: boolean, indicates whether or not you want to check if the image is completly black or white. :param tag: boolean, indicates whether or not you want to generate descriptions for the webcam. """ scanner = Scanner() if preset == "webcamXP": scanner.webcamXP(check,tag) elif preset == "MJPG": scanner.MJPG(check,tag) elif preset == "yawCam": scanner.yawCam(check,tag) else: print(f":camera: camera type [i]'{preset}'[/i] not yet supported, please add an issue in github to suggest a new camera type.")
from search import Scanner check = input("Do you want to check if each footage is completly black/white? This might slow the program down. \n enter yes or no:") if check == "yes": check = True else: check = False tag = input("Do you want to generate description of the image?\n" "enter yes or no:") if tag == "yes": tag = True else: tag = False scanner = Scanner() scanner.webcamSeven(check,tag)
from search import Scanner check = input("Do you want to check if each footage is completly black/white? This might slow the program down. \n enter yes or no:") if check == "yes": check = True else: check = False tag = input("Do you want to generate description of the image?\n" "enter yes or no:") if tag == "yes": tag = True else: tag = False scanner = Scanner() scanner.MJPG(check,tag)
from search import Scanner scanner = Scanner() scanner.webcamXP(check=True)
from search import Scanner check = input( "Do you want to check if each footage is completly black/white? This might slow the program down. \n enter yes or no:" ) if check == "yes": check = True else: check = False tag = input("Do you want to generate description of the image?\n" "enter yes or no:") if tag == "yes": tag = True else: tag = False scanner = Scanner() scanner.webcamXP(check, tag)
from search import Scanner scanner = Scanner() scanner.webcamXP()