Add new HTML tag after current tag

Viewed 7727

I have a loop:

for tag in soup.find('article'):

I need to add a new tag after each tag in this loop. I tried to use the insert() method to no avail.

How can I solve this task with BeautifulSoup?

1 Answers
Related