google-search icon indicating copy to clipboard operation
google-search copied to clipboard

Support for more SERP features

Open chrisjoyce911 opened this issue 2 years ago • 0 comments

Google SERP has many different features, at the moment the Search() only returns the Organic results

Some of the other features that the SERP contains are

To keep backward compatibility it would be best to maintain the Search() return types.

As every remote call contains all the results for all of the SERP features, process leaves two options.

  1. Process the DOM and only return the selected feature
  2. Process the DOM and return all features found on the DOM
  3. Retrieve the DOM and have calls to feature functions process the DOM and return that features result

This patch has an option to maintain the current Search()

I have included for example only showing what option 2 or 3 could look like

Option 2 example line 313

Option 3 example line 320

This is not intended to mare at this stage

chrisjoyce911 avatar May 28 '23 08:05 chrisjoyce911