F
F
fandorin_official2018-03-01 18:00:17
JavaScript
fandorin_official, 2018-03-01 18:00:17

How to read a number from a site?

All the best, tell me please, how can I "pull out" the number from the page?
You need to pull out 70.1241
It is located here:
5a98146d0d558994924333.jpeg
The DOM properties are:
5a9817c1036b7013171676.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nick Sdk, 2018-03-01
@fandorin_official

var number = document.querySelectorAll('tbody')[0].querySelectorAll('tr')[0].querySelectorAll('td')[4].textContent;

jQuery
$('tbody > tr:eq(0) > td:eq(4)').text();

A
Alex Ander, 2018-03-01
@loktionov129

document.querySelector("tbody tr td:last-child").textContent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question