crawlee
crawlee copied to clipboard
accept Map / Set in RequestList sources
For Set, would iterate over it.
For Map, would only use the values().
Since RequestList clears the sources, when doing openRequestList('rl', [...set]), it does only on the array, having to manually use set.clear() after.
PR welcome :) Although I'm not entirely sure how happy Sets and Maps are if you delete items from them while iterating so it might be a bit tricky. Or not...
Closing as stale, the preferred way is now crawler.addRequests() which handles batching and is non-blocking.