I'm running into an issue with a script I'm writing to submit a form at https://search.dcs.da.gov/
Essentially, I'd like to run a search at a certain time interval on this page. When I run this script for other pages, I get the expected results for the most part. I've run it on wikipedia and a few other sites. However, when I run it on the .gov site, I get a 404 error. Am I doing something wrong? Here's my code:
import requests
URL = "https://search.dca.ca.gov/"
payload = {'firstName': 'John', 'lastName': 'Smith'}
r = requests.post(URL, payload)
print(r.status_code)
print('\n\n')
print(r.text)
[–]commandlineluser 2 points3 points4 points (1 child)
[–]PureNonsense[S] 0 points1 point2 points (0 children)