[Python] Try to get Zuaba response from this link :-https://www.zaubacorp.com/custom-search

Discussão em 'Python' iniciado por Stack, Novembro 27, 2024.

  1. Stack

    Stack Membro Participativo

    import requests


    headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36',
    'Accept': 'application/json',
    'Referer': 'https://www.zaubacorp.com/',
    'Origin': 'https://www.zaubacorp.com',
    }


    url = 'https://www.zaubacorp.com/custom-search'
    payload = {
    'search': 'tata',
    'filter': 'company'
    }

    response = requests.post(url, data=payload)

    print(response.status_code)


    I am expecting response should be is 200, but I am getting 403.

    Can anybody help me to get this?

    Continue reading...

Compartilhe esta Página