我有一些看起来像这样的HTML:
<h1>Title</h1> //a random amount of p/uls or tagless text <h1> Next Title</h1>
我想将所有HTML从第一个h1复制到下一个h1.我怎样才能做到这一点?
html python beautifulsoup
beautifulsoup ×1
html ×1
python ×1