Skip to content

Page Loading Animation Trouble #1670

Answered by 5ila5
modem158 asked this question in Q&A
Discussion options

You must be logged in to vote

I would POST request the url (like the website does) and get the html from the response.

This should work:

import requests

URL = "https://www.northyorks.gov.uk/bin-calendar/Harrogate/results/{uprn}/ajax"

r = requests.post(URL.format(uprn=100050389710), params={"_wrapper_format":"drupal_ajax"})
r.raise_for_status()
html = r.json()[0]["data"]

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by modem158
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants