Generation

generate functionSat, 12 Nov 2022

Get title for a given url website

def get_title(url): try: return requests.get(url).text.split("<title>")[1].split("</title>")[0] except: return "No Title" get_title("http://www.google.com")

Want to kickstart your project?Use the new AI Studio to create your code