Find the title tags from a given html document using BeautifulSoup in Python Last Updated : 15 Mar, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report Let's see how to Find the title tags from a given html document using BeautifulSoup in python. so we can find the title tag from html document using BeautifulSoup find() method. The find function takes the name of the tag as string input and returns the first found match of the particular tag from the webpage. Example 1: Python # import BeautifulSoup from bs4 import BeautifulSoup # create html document html = """ <html> <head> <title> GREEKSFORGREEKS </title> </head> <body> <p> GFG BeautifulSoup tutorial </p> </body> </html> """ # invoke BeautifulSoup() soup = BeautifulSoup(html, 'html.parser') print(" *** Title of the document *** ") # invoke find() print(soup.find("title")) Output: Example 2: Python # import BeautifulSoup from bs4 import BeautifulSoup # create html document html = """ <html> <head> <title> Hi I am Title </title> </head> <body> <p> GFG BeautifulSoup tutorial </p> </body> </html> """ # invoke BeautifulSoup() soup = BeautifulSoup(html, 'html.parser') print(" *** Title of the document *** ") # invoke find() print(soup.find("title")) Output: Comment More infoAdvertise with us Next Article Find the tag with a given attribute value in an HTML document using BeautifulSoup S sidgautam Follow Improve Article Tags : Python Python BeautifulSoup Python bs4-Exercises Practice Tags : python Similar Reads Find the tag with a given attribute value in an HTML document using BeautifulSoup Prerequisites: Beautifulsoup In this article, we will discuss how beautifulsoup can be employed to find a tag with the given attribute value in an HTML document. Approach: Import module.Scrap data from a webpage.Parse the string scraped to HTML.Use find() function to find the attribute and tag.Print 1 min read Extract the HTML code of the given tag and its parent using BeautifulSoup In this article, we will discuss how to extract the HTML code of the given tag and its parent using BeautifulSoup. Modules Needed First, we need to install all these modules on our computer. BeautifulSoup: Our primary module contains a method to access a webpage over HTTP.pip install bs4lxml: Helper 3 min read How to scrape all the text from body tag using Beautifulsoup in Python? strings generator is provided by Beautiful Soup which is a web scraping framework for Python. Web scraping is the process of extracting data from the website using automated tools to make the process faster. One drawback of the string attribute is that it only works for tags with string inside it an 2 min read Find the text of the given tag using BeautifulSoup Web scraping is a process of using software bots called web scrapers in extracting information from HTML or XML content of a web page. Beautiful Soup is a library used for scraping data through python. Beautiful Soup works along with a parser to provide iteration, searching, and modifying the conten 2 min read How to find a HTML tag that contains certain text using BeautifulSoup ? BeautifulSoup, a powerful Python library for web scraping, simplifies the process of parsing HTML and XML documents. One common task is to find an HTML tag that contains specific text. In this article, we'll explore how to achieve this using BeautifulSoup, providing a step-by-step guide. Required Py 4 min read Get tag name using Beautifulsoup in Python Prerequisite: Beautifulsoup Installation Name property is provided by Beautiful Soup which is a web scraping framework for Python. Web scraping is the process of extracting data from the website using automated tools to make the process faster. Name object corresponds to the name of an XML or HTML t 1 min read Like