T
T
Thomas_Lipton2020-09-05 13:07:38
Python
Thomas_Lipton, 2020-09-05 13:07:38

I do not understand how to make a Parser with this criterion?

Hello, please tell me how to solve my problem. I need to take a numeric value from this code:

<td>
<span class="xb1_color font-weight-bold">
2.16M 
<img alt="c" class="small-coins-icon" src="/design/img/coins_bin.png">
</span>
</td>

I need the given value "2.16M"

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
a, 2020-09-05
@Thomas_Lipton

There is a library for parsing beautifulsoup4
Learn to google.

N
niokledeon, 2020-09-05
@niokledeon

I do not pretend to the correctness of my answer, but still put in my two cents. Using selenium, I found the desired element and copied it into a variable like this:

some_var = driver.find_element_by_xpath('Сам xpath').text

D
David Armyan, 2020-09-06
@proboltal

Here's some good BS4 documentation and that's exactly what you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question