Closed cheng10 closed 7 years ago
http://stackoverflow.com/questions/5598524/can-i-remove-script-tags-with-beautifulsoup I'm guessing you've tried this. Do you have an example of a before/after of the contents before it's parsed by bs4?
@heykevin I read this before. we can try this. thanks kevin.
Instead of extract a lot of the other solutions mention using .decompose(). Not sure if you've looked at that. http://stackoverflow.com/a/19438513
bs4 did not remove some scirpt tag and tags within html comments.