Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. from bs4 import BeautifulSoup
  2.  
  3. # remove all attributes
  4. def _remove_all_attrs(soup):
  5. for tag in soup.find_all(True):
  6. tag.attrs = {}
  7. return soup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement