Start a new topic

Zyte Api actions searchKeyword

Hola i am using the zyte api in the documentation, I see that there is the searchKeyword action, I am trying to implement it in a Scrapy project where I need to use the search engine of the target page, but I don't see that it returns me a result beyond the main page what can I be doing wrong ?    

    def start_requests(self):
        yield scrapy.Request(
                "zyte_api_automap": {
                    "browserHtml": True,
                    "actions": [
                            "action": "searchKeyword",
                            "action": "waitForNavigation",
                    "screenshot": True,

    def parse(self, response):
        screenshot_bytes = b64decode(response.raw_api_response["screenshot"])
        with open("screenshot.png", "wb") as file:


Login to post a comment