def getData(username):
    try:
        YOUTUBE_URL = getenv("YOUTUBE_URL")
        html = htmlClient.getHtml(YOUTUBE_URL, username)
        findedText = texts.findTagText(html, "title")
        url = YOUTUBE_URL + username

        if "404 Not Found" in findedText:
            prints.notFoundPrint("YouTube", username)
        else:
            prints.foundPrint("YouTube", url)
    except ValueError:
        exceptions.printException(__name__)
Exemple #2
0
def getData(username):
    try:
        INSTAGRAM_URL = getenv("INSTAGRAM_URL")
        html = htmlClient.getHtml(INSTAGRAM_URL, username)
        findedText = texts.findTagText(html, "title")
        url = INSTAGRAM_URL + username

        if username in findedText:
            prints.foundPrint("Instagram", url)
        else:
            prints.notFoundPrint("Instagram", username)
    except ValueError:
        exceptions.printException(__name__)
def printData(username):
    try:
        TIKTOK_URL = getenv("TIKTOK_URL")
        html = htmlClient.getHtml(TIKTOK_URL, username)
        findedText = texts.findTagText(html, "title")
        url = TIKTOK_URL + username

        if len(findedText) > 6:
            prints.foundPrint("TikTok", url)
        else:
            prints.notFoundPrint("TikTok", username)
    except ValueError:
        exceptions.printException(__name__)
def getData(username):
    try:
        MEDIUM_URL = getenv("MEDIUM_URL")
        html = htmlClient.getHtml(MEDIUM_URL, username)
        findedText = texts.findTagText(html, "title")
        url = MEDIUM_URL + username

        if len(findedText) > 6:
            prints.foundPrint("Medium", url)
        else:
            prints.notFoundPrint("Medium", username)
    except ValueError:
        exceptions.printException(__name__)
def getData(username):
    try:
        TRIPADVISOR_URL = getenv("TRIPADVISOR_URL")
        html = htmlClient.getHtml(TRIPADVISOR_URL, username)
        findedText = texts.findTagText(html, "title")
        url = TRIPADVISOR_URL + username

        if "  404 Not Found - Tripadvisor " in findedText:
            prints.notFoundPrint("Tripadvisor", username)
        else:
            prints.foundPrint("Tripadvisor", url)

    except ValueError:
        exceptions.printException(__name__)
def getData(username):
    try:
        SPOTIFY_URL = getenv("SPOTIFY_URL")
        html = htmlClient.getHtml(SPOTIFY_URL, username)
        findedText = texts.findTagText(html, "h1")
        url = SPOTIFY_URL + username

        if findedText:
            if username in findedText:
                prints.foundPrint("Spotify", url)
        else:
            prints.notFoundPrint("Spotify", username)
    except ValueError:
        exceptions.printException(__name__)
def getData(username):
    try:
        FACEBOOK_URL = getenv("FACEBOOK_URL")
        html = htmlClient.getHtml(FACEBOOK_URL, username)
        findedText = texts.findTagText(html, "title")

        url = FACEBOOK_URL + username

        if "No se pudo encontrar la página | Facebook" in findedText:
            prints.notFoundPrint("Facebook", username)
        else:
            prints.foundPrint("Facebook", url)

    except ValueError:
        exceptions.printException(__name__)
def getData(username):
    try:
        ABOUTME_URL = getenv("ABOUTME_URL")

        html = htmlClient.getHtml(ABOUTME_URL, username)
        findedText = texts.findTagText(html, "title")

        url = ABOUTME_URL + username

        if len(findedText) > 8:
            prints.foundPrint("About.me", url)
        else:
            prints.notFoundPrint("About.me", username)
    except ValueError:
        exceptions.printException(__name__)
Exemple #9
0
def getData(username):
    try:
        GITHUB_URL = getenv("GITHUB_URL")
        html = htmlClient.getHtml(GITHUB_URL, username)
        findedText = texts.findTagText(html, "title")
        url = GITHUB_URL + username

        if findedText:
            if "Not Found" in findedText:
                prints.notFoundPrint("GitHub", username)
            else:
                prints.foundPrint("GitHub", url)
        else:
            prints.notFoundPrint("GitHub", username)
    except ValueError:
        exceptions.printException(__name__)