Skip to content
Advertisement

Get text inside a span html beautifulSoup

I have this structure:

JavaScript

and I want to get only the $39, but when I do this code:

JavaScript

It returns me:

JavaScript

How can I get only the part I want?

Advertisement

Answer

Interesting question

JavaScript

will get you

JavaScript

so

JavaScript

will get you

$39

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement