An auto referral bot for referral link print successful with a green check mark and a x symbol when there is an error
def referral(link): import requests from bs4 import BeautifulSoup soup = BeautifulSoup(requests.get(link).text, "html.parser") try: print(f""" \033[92mSuccessful \033[0m {soup.h1.string}") except: print("\033[91mError\033[0m") referral("https://www.w3schools.com/python/func_return.asp")