Apify and Crawlee Official Forum

Updated 3 months ago

why select schema not working?

Plain Text
"platform ": {
            "title": "Search engine",
            "type": "string",
            "description": "Select the search engine you want your websites from.",
            "editor": "select",
            "default": "Duckduckgo",
            "enum": ["ddg", "ggl", "serp"],
            "enumTitles": ["Duckduckgo", "Google", "Serpapi"]
            },

I have this in my actor's input schema. Then I get the content of this
Plain Text
 actor_input = await Actor.get_input() or {}
            raw_query = actor_input.get('query')
            query = raw_query.replace(" ", "+")
            numbers_of_results = actor_input.get('results')
            engine = actor_input.get('platform')

but when I print the engine's content, it says
None
R
1 comment
hey, it looks like you have an extra white space in the property name field: "platform " instead of "platform"
Add a reply
Sign up and join the conversation on Discord