I'm thinking of extracting only specific elements using CSS selectors from HTML extracted using BeautifulSoup4.
For the (self-made) article scraped this time,
<li class="ramen item" id="syouyu">soy source ramen</li>
Not a tag like
\( 3 \times 4 = 12 \)
$$\int f(x)\ dx = k $$
Some are surrounded by their own tags, such as.
like this
\( \)
$$ $$
Is there a way to extract only the string enclosed in?
Thank you for your answer.
Recommended Posts