import requests as rs
from bs4 import BeautifulSoup as bs
import re
site = 'https://www.iciciprulife.com/'
req = rs.get(site)
soup = bs(req.text, 'html.parser')
link=input("Enter which url you want http or https:")
if link == "http":
for i in soup.find_all('a',attrs={'href': re.compile("^http://")}):
print(i.get('href'))
In The above code I don't want to use 'href' or 'a' instead I want to search URL using regular expression in entire webpage