Apify

Apify and Crawlee Official Forum

b
F
A
J
A

Multiple (hundreds) Checkbox INPUT

What is the best way to replicate this INPUTS into INPUT_SCHEMA.json
Attachment
image.png
1
A
!
M
10 comments
just advanced to level 12! Thanks for your contributions! πŸŽ‰
Multiple (hundreds) Checkbox INPUT
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.
just advanced to level 2! Thanks for your contributions! πŸŽ‰
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)
I have read the spec, can't find what I am looking for...
ehh sorry, I found it! it's there all along, I just missed it thanks!
Add a reply
Sign up and join the conversation on Discord
Join