Multiple (hundreds) Checkbox INPUT
What is the best way to replicate this INPUTS into INPUT_SCHEMA.json

6 Replies
@!!!Joefree!!! 👑 just advanced to level 12! Thanks for your contributions! 🎉
I wish there's an input type combination of stringList + enum
eg:
"dishes": {"title": "Dishes", "type": "stringList", "description": "", "enum": ["salad","cakes"], "enumTitles":["Salad","Cakes"]}
For example I want to scrape https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html
if you check the cuisines filters (show all), a pop-up above show up.
currently I used one boolean input for one cuisine filter,
The problem is there is hundreds of cuisine filter to choose (about 200 more), and I want to also filter by dishes,
more couple hundreds boolean parameter to add.
the Platform seem have limit on how many parameter an actor have, I often get error something about "callstack",
so I give up using this method, with hope finding more elegant way to do this.
Thanks!The way I went about it in this situation was to prompt the user to enter a link with a sample of the filters needed.
I find it more convenient than an infinite number of switches.
@Mantisus just advanced to level 2! Thanks for your contributions! 🎉
extended-salmon•14mo ago
Have you checked this: https://docs.apify.com/platform/actors/development/actor-definition/input-schema/specification/v1 @!!!Joefree!!! 👑 ?
Specification | Platform | Apify Documentation
Learn how to define and easily validate a schema for your Actor's input with code examples. Provide an autogenerated input UI for your Actor's users.
@Mantisus thanks for the suggestion. For tripadvisor example it's easy to parse the URL, but I also have other target website which the URL does not reflect input filters (the URL does't change at all)
@Saurav Jain I have read the spec, can't find what I am looking for...
@Saurav Jain ehh sorry, I found it! it's there all along, I just missed it thanks!