You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The natural results are the essential part of the result page.
I think it would be good to make a basic check on each request to look up that the natural results are found .
If google does some changes in the html and the organic results are not found anymore the exceptions is thrown.
The text was updated successfully, but these errors were encountered:
@thebennos I understand the goal but that's a very opinionated feature and it might cause undesirable behavior of the library.
I think the simplest solution for the moment would be to do this check by yourself when getting the results back from the GoogleClient. You can then manage it the way you want it to be managed. For instance you can stop to process the results if you detect that there are less than 9 results.
Anyway that's a feature that might be optional and that can be activated, but there are several things to take in considerations because depending on the elements present on the page google might return less than 10 results. That's worth some thinking for the next releases.
As an addition I can let you know that it's on the internal todo list to create a small application that will continuously parse google serps in order to detect a change as soon as it arrives. I cannot give a date for this feature because it's only an idea for the moment.
@thebennos, I'm not sure to understand your proposal. Can you elaborate please?
A few checks are already done to know if the page is parseable. The issue with #56 is that the parser was not able to parse some results because of the google change and the parser considered them as not result items. The point with google change is that anything can change, the structure, a class, an id, really anything...
Being said I think it's possible to add some rules based on the experience with the library.
The natural results are the essential part of the result page.
I think it would be good to make a basic check on each request to look up that the natural results are found .
If google does some changes in the html and the organic results are not found anymore the exceptions is thrown.
The text was updated successfully, but these errors were encountered: