soup = Soup(htmlFile)
headTag = soup.find('h1')
divTag = soup.new_tag('div')
divTag['class'] = 'link'
headTag.insert_after(divTag)
print(soup)
How to add a new div tag in an existing html file after a h1 tag using python