def query(data):
    formdata = get_fields()
formdata.update({'ctl00$MainContent$ddRecordsPerPage': '25'})
formdata.update(data)
res = requests.post(URL, formdata)
if res.ok:
    page = etree.HTML(res.text)
return page.xpath(
    '//table[@id="MainContent_SearchControl_grdSearchResultsEntity"]//tr')
How to start a query from a static website?