botasaurus
botasaurus copied to clipboard
Can't make post request with payload and headers while stealth is on
iam getting this error :
venv\Lib\site-packages\botasaurus\got_adapter.py", line 138, in _convert_to_got_request
raise ValueError(f"{key} is not Supported")
ValueError: json is not Supported
from this line :
driver=bt.create_requests(use_stealth=True)
response=driver.post('https://woovin.com/wp-admin/admin-ajax.php',payload,headers=custom_headers)
the headers and payload are simple python dictionaries , iam just trying to make a simple post request with headers and payload it works perfectly fine if i removed the use_strealth=True as following :
driver=bt.create_requests()
Resolved, Kindly run
python -m pip install botasaurus --upgrade
Then run
from botasaurus import bt
driver=bt.create_requests(use_stealth=True)
response=driver.post('https://woovin.com/wp-admin/admin-ajax.php',json={"aa":"dd"})
print(response.status_code)