BeautifulSoup에서 스크립트 태그를 제거할 수 있습니까? 할 수 있다baba', 'html.parser') for s in soup.select('script'): s.extract() print(soup) baba 향후 참조가 필요한 사용자를 위한 업데이트된 답변:정답은. 다른 방법을 사용할 수 있지만,decompose제자리에서 작동합니다. 사용 예: soup = BeautifulSoup('This is a slimy text and I am slimer') soup.i.decompose() print str(soup) #prints 'This is a slimy text and' 쓰레기 같은 것을 제거하는 데 꽤 유용합니다.") [x.extract() for x in a.findAll('sc..