r/programmingrequests • u/Billy_Chesterfield • Jun 18 '18
Script to calculate average of numbers that appear on a certain webpage
Ideally, the script will go to a webpage (always the same webpage, login required; no need to make the script login because I'm always logged in), find some specific numbers (always the same six numbers), ignore any other number, and tell me the average of those numbers.
I have no programming experience, but I am able to modify scripts. Thank you to whoever will have a couple of minutes to help me!
I got the .html of the page from Chrome Dev and this is what it looks like:
https://nofile.io/f/T05Fnx32WB6/adaptibarhmltpage.txt
I had to upload it there because it's too long to post it as a comment.
And this is what the page looks like (circled is the numbers I'd like averaged):
https://nofile.io/f/5reeFcOyEsb/Screen+Shot+2018-06-18+at+11.00.17+AM.png
View all comments
Show parent comment
1
u/Billy_Chesterfield Jun 18 '18 edited Jun 18 '18
I don't know if it's because Java is hard to understand for a complete noob like me but it's amazing how just reading that like the only thing that looks familiar is the three letters "avg". How dod you do it? I'm honestly amazed.
edit: I was able to understand that basically you tell the script to get what's on the right of the words "font-bold" and average it. I'm truly amazed!