BeautifulSoup (BeautifulSoup4) is currently a better choice, but I find it quite laborious when using BeautifulSoup. For me, using regular expressions directly is the simplest and crudest method. It makes writing smooth. If you are not familiar with BeautifulSoup, you should check the documentation
BeautifulSoup Bar
There are too many trolls on this segment. delete.
Recommended
BeautifulSoup
和pyquery
BeautifulSoup
BeautifulSoup (BeautifulSoup4) is currently a better choice, but I find it quite laborious when using BeautifulSoup. For me, using regular expressions directly is the simplest and crudest method. It makes writing smooth. If you are not familiar with BeautifulSoup, you should check the documentation
BeautifulSoup(4)