Exemple #1
0
def main():
     name = input("Enter in an IP address or domain name:")

     if name == "":
         print("Please enter in a IP or domain name.")
     else:
         print("searching...")
         locator.find(name)
Exemple #2
0
def on_click():
    if input_textbox.text() == "":
        QMessageBox.about(widg, "Bad Input Message Box", "Please enter in a IP or domain name.")
    else:
        locator.find(input_textbox.text())
Exemple #3
0
def identify(url):
    result = classifier.classify(url)
    # if True:
    if result:
        return render_template('results.html', url=url, result=result['title'], locations=locator.find(query=result['alias']))
        # return render_template('results.html', url=url, result=result['title'], locations=HARD)
    else:
        return render_template('unrecognized.html', url=url)