1
私はこのようなファイルがあります:美味しいスープでタグの外のテキストを見つけたり変更したりするにはどうすればいいですか?
words1 outside of a Tag <tag1> words2 inside of tag1 </tag1> words3 outside of a Tag
私はtag1
の外の文字列を抽出し、beautifulsoupでこのような何かにそれを変更したい:私は、タグの外に言葉を置き換えることができますどのように
changed word1 <tag1> words2 inside of tag1 </tag1> changed word3
を美しいスープ?