botasaurus icon indicating copy to clipboard operation
botasaurus copied to clipboard

Can't make post request with payload and headers while stealth is on

Open zeyadkhaled1 opened this issue 1 year ago • 1 comments

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()

zeyadkhaled1 avatar Mar 13 '24 14:03 zeyadkhaled1

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)

Chetan11-dev avatar Mar 18 '24 06:03 Chetan11-dev