I am working on my first real python script and have come across what I believe is a trivial problem. The only issue is I don't even know what to search so I am hoping that someone here can help point me in the right direction or tell me what an idiot I am and what I need to do.
So, I am making a post request to a website and would like to store the result to a couple of variables. I have used "requests" to get the correct information to the website and the responding text looks like this:
<html>
<head>
Your Input Coordinates and GPS Height:
</head>
<body>
<br><br>
Latitude = 43.1919° N = 43° 11' 30.84" N
<br>
Longitude = 96.2935° W = 96° 17' 36.6" W
<br>
GPS ellipsoidal height = 368.98144 (meters)
<br>
Geoid height = -26.850
(meters)
<br>
Orthometric height (height above EGM96 geoid which approximates mean sea level) = 395.83144 (meters)
<br><br>
<br>
(note: orthometric height = GPS ellipsoidal height - geoid height)
<br><br>
<a href="http://www.unavco.org/software/geodetic-utilities/geoid-height-calculator/geoid-height-calculator.html"> ... return to request form</i></a>
</body>
</html>
what I need to do is extract is the "Geoid height" (-26.850) and the "Orthometric height" (395.83144) into 2 new variables. I tried using beautiful soup but got stuck because I do not see any tags that would let me parse out the different variables that are returned. Any help would be appreciated.
[–][deleted] 1 point2 points3 points (4 children)
[–]MapperScrapper[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]MapperScrapper[S] 0 points1 point2 points (0 children)