import requests
from bs4 import BeautifulSoup as bs
import re
url = “https://matlabhelpers.com/”
page = requests.get(url)
soup = bs(page.content , ‘html.parser’)
head = soup.find(‘head’)
# re.findall(r'[^<]+’, str(head))
#SSL secure
ssl = soup.find(attrs={“rel”: re.compile(r’canonical’, re.I)})
# ssl[‘href’]
if re.search(‘(https:)’, ssl[‘href’]):
print(‘SSL Secure!!!’)
else:
print(‘Bad news your website is not SSL secure’)
