LuanRT / google-this

A simple yet powerful module to retrieve organic search results and much more from Google.
https://www.npmjs.com/package/googlethis
MIT License
320 stars 77 forks source link

fix: update image origin information index #41

Closed eliabefranca closed 1 year ago

eliabefranca commented 1 year ago

Image Search Fix

Description

The image search feature wasn't working and was always returning an empty array.

Fixes

It seems that the index that refers to the origin changed from 9 to 22, so I just changed that.

Type of change

Checklist:

alexandrosmagos commented 1 year ago

Tried the code, it now returns links and fixes the current bug, but the results are completely different that what searched.

LuanRT commented 1 year ago

Awesome, thanks for contributing!

@alexandrosmagos Are you sure? I did a few tests and all results were relevant to the query used. But maybe I'm missing something or we need more context here.

For now I'll be merging this and publish a new version to NPM.