With the help of BS4, here we try to extract the news only about football from the BBC website.
Implementing Web Scraping in Python with BeautifulSoup
There are mainly two ways to extract data from a website:
1.Use the API of the website (if it exists). For example, Facebook has the Facebook Graph API which allows retrieval of data posted on Facebook.
2.Access the HTML of the webpage and extract useful information/data from it. This technique is called web scraping or web harvesting or web data extraction.