colly
colly copied to clipboard
How to stop and not go down in multiple OnResponse?
I wrote multiple OnResponse. Let’s say there are five. The previous one is used for judgment. If I want to retry in the third OnResponse, how can I prevent the next two OnResponse from executing?
Well, I think you could put some flag into Response.Ctx
.
In this way, each OnResponse needs to be judged, including the following OnHTML and OnXML, which is not a good choice. @WGH-