-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to by pass c.OnError #799
Comments
I resolved with using property
|
I also have this issue where a website returns 410 Gone but still provides the html body, yet it'll fail in colly. |
You can hack around the OnError function receiver but honestly it's very gross because you're limited in how much you can hook into the Colly logic (really you want to push onto the on http callback slice, but it's private) I strongly suggest doing this outside of colly with a std http request + goquery instead of the below.
|
when I scrapping data, page return http status 404 but result still have html response. I want get response. But in colly, if OnError occurred then onHTML do not occurre. How can I get response when error?
The text was updated successfully, but these errors were encountered: