Advertisement
terriblysapphic

owo what's this

Sep 5th, 2020
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. from bs4 import BeautifulSoup,NavigableString
  2.  
  3. def are_you_owo_enough(tag):
  4.     return tag.string!=None
  5.  
  6. f = open("/dev/stdin")
  7. soup = BeautifulSoup(f,'html.parser')
  8. for tag in soup.find_all(are_you_owo_enough):
  9.     s = tag.string.replace("L","W").replace("l","w").replace("R","W").replace("r","w")
  10.     tag.string.replace_with(s)
  11.  
  12. print(soup)
  13. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement