Код: Выделить всё
headers = {
"User-Agent":
"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Mobile Safari/537.36"}
telefoongids_input = "https://www.detelefoongids.nl/api/search/index"
myObj2 = {"who":"John", "where": "Amsterdam", "page": 0}
b = requests.post(url=telefoongids_input, data="myObj2", headers=headers )
b1 = b.text
print(b1)
Подробнее здесь: https://stackoverflow.com/questions/773 ... tiful-soup