How to read the number from the website?

All good, please tell me how to pull the number from the page?
Need to get 70.1241
Is here:
5a98146d0d558994924333.jpeg

DOM properties are:
5a9817c1036b7013171676.jpeg
June 7th 19 at 15:01
2 answers
June 7th 19 at 15:03
Solution
var number = document.querySelectorAll('tbody')[0].querySelectorAll('tr')[0].querySelectorAll('td')[4].textContent;

jquery
$('tbody > tr:eq(0) > td:eq(4)').text();
And the class does not need to specify? There are numbers on the site a lot :) - frankie83 commented on June 7th 19 at 15:06
Add properties to DOM) - frankie83 commented on June 7th 19 at 15:09
,
document.querySelector("table#DataTables_Table_0 tr td:last-child").textContent;

document.querySelector - find the first occurrence - nikolas.Reichert commented on June 7th 19 at 15:12
and if the item is not the last but 5 or 6 ? - frankie83 commented on June 7th 19 at 15:15
if still without jquery,
document.querySelectorAll("table#DataTables_Table_0 > tr")[0].querySelectorAll("td")[5].textContent;
- nikolas.Reichert commented on June 7th 19 at 15:18
But if jquery then:
$('table#DataTables_Table_0 > tr:eq(0) > td:eq(5)').text();

So? - frankie83 commented on June 7th 19 at 15:21
Yes
I'm the only one in the example is a bit provtykal, and it is necessary to remove 1 "arrow" (>)
and using jquery in this case you can do without them
$('table#DataTables_Table_0 tr:eq(0) td:eq(5)').text();

try - nikolas.Reichert commented on June 7th 19 at 15:24
here a rather detailed "cheat sheet" for the selectors
https://ruseller.com/lessons.php?id=682
sometimes I look at her - nikolas.Reichert commented on June 7th 19 at 15:27
June 7th 19 at 15:05
document.querySelector("tbody tr td:last-child").textContent
And the class is not required? There's a lot of numbers on the website) - frankie83 commented on June 7th 19 at 15:08

Find more questions by tags JavaScriptUserscript