How to use :not() to get first value without anything else

I have a source

<td>10<span class="percent-medium up">20%<i class="icon-arrow-9"></i></span></td>

How to get first number?

10

How to get the name of class

"percent-medium up"

I was use type HTML, select

td:nth-of-type(1) :not(span)

but it's not work

@paulvu Hi, can you please, share the targeted website?