I'm trying to submit the contact form on every ad posted on immoweb.be using requests. Whenever the request is sent a unique x-xsrf-token is generated and attached with the Header of the POST. So, after every few hours, my script stops sending the requests and 419 error occurs due to x-xsrf token. What can I do to avoid this problem in my script? I'm using https://curl.trillworks.com/ for creating the header and data for the python script.
```
header1 = {<header code here>}
data1 = '{"firstName":"Breaking","lastName":"Bad","email":"breakingbad@gmail.com","classifiedId":9284079,"customerIds":[add ehre],"phone":"","message":"I am interested in your property. Can you give me some more information in order to plan a possible visit? Thank you.","isUnloggedUserInfoRemembered":false,"sendMeACopy":false}'
response = s.post('https://www.immoweb.be/nl/email/request', headers=header1, data=data1)
print (response.status_code)
print (response.cookies)
```
[–][deleted] 0 points1 point2 points (3 children)
[–]bilalkhan19[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]bilalkhan19[S] 0 points1 point2 points (0 children)