Easy way to get data between tags of xml or html files in python?

后端 未结 6 793
时光取名叫无心
时光取名叫无心 2021-02-06 17:05

I am using Python and need to find and retrieve all character data between tags:

I need this stuff

I then want to output

6条回答
  •  离开以前
    2021-02-06 17:29

    This is how I am doing it:

        (myhtml.split('')[1]).split('')[0]
    

    Tell me if it worked!

提交回复
热议问题