When I make a get request to this url: http://www.waterwaysguide.org.au/waterwaysguide/access-point/4980/partial with a browser a full html page is returned. However when I make a GET request with the python requests module only a part of the html is returned and the core content is missing.
How do I change my code so that I can get the data that is missing?
This is the code I am using;
import requests
def get_data(point_num):
base_url = 'http://www.waterwaysguide.org.au/waterwaysguide/access-point/{}/partial'
r = requests.get(base_url)
html_content = r.text
print(html_content)
get_data(4980)
The result of running the code is shown below. The content inside the div class="view view-waterway-access-point-page... is missing.
<div>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">
Point of Interest detail </h4>
</div>
<div class="modal-body">
<div class="view view-waterway-access-point-page view-id-waterway_access_point_page view-display-id-page view-dom-id-c855bf9afdfe945979f96b2301d55784">
</div> </div>
<div class="modal-footer">
<button type="button" id="closeRemoteModal" class="btn btn-action" data-dismiss="modal">Close</button>
</div>
</div>