beautifulsoup remove element

# delete scripts using beautifulsoup

for script in'script'):

Here is what the above code is Doing:
1. We’re using the select method to find all the script tags in the HTML.
2. We’re looping through each script tag and calling the decompose method on it.
3. This removes the script tag from the HTML.