Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from bs4 import BeautifulSoup
- # remove all attributes
- def _remove_all_attrs(soup):
- for tag in soup.find_all(True):
- tag.attrs = {}
- return soup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement