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__)
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: TELEGRAM_URL = getenv("TELEGRAM_URL") html = htmlClient.getHtml(TELEGRAM_URL, username) url = TELEGRAM_URL + username findedClass = html.find_all("div", {"class": "tgme_page_extra"}) removedTag = regex.removeTags(str(findedClass)) if len(removedTag) > 2: prints.foundPrint("Telegram",url) else: prints.notFoundPrint("Telegram", 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__)
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__)
def getData(username): try: PINTEREST_URL = getenv("PINTEREST_URL") html = htmlClient.getHtml(PINTEREST_URL, username) findedId = html.find(id='initial-state') removedTag = regex.removeTags(str(findedId)) convertedObject = convertToObject(removedTag) url = PINTEREST_URL + username if convertedObject.resourceResponses[0].response.code == 0: prints.foundPrint("Pinterest", url) else: prints.notFoundPrint("Pinterest", username) except ValueError: exceptions.printException(__name__)