**# WEB SCRAPING:**

import requests 
from bs4 import BeautifulSoup

# Defining Variables

url = '<https://en.wikipedia.org/wiki/Main_Page>'
response = requests.get(url)

soup = BeautifulSoup(response.text, 'html.parser')
print(soup)

# Filtering and Search

soup.title.string

# parent.name - parent/child = search for the section's

soup.title.parent.name

#search for html tag's

soup.find_all('p')

soup.find_all('p')[2].find_all('a')

# creating a for loop for all the links title

for link in soup.find_all('p')[2].find_all('a'):
    print(link.get('title'))

for link in soup.find_all('p')[2].find_all('a'):
    print(link.get('href'))

# find_all = search for html tags

soup.find_all('title')

# search for CSS tags

soup.select('title')