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

v1.8.0 create patch for title update #70

Closed haskx closed 5 months ago

haskx commented 8 months ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch googlethis@1.8.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/googlethis/lib/utils/constants.js b/node_modules/googlethis/lib/utils/constants.js
index a086d19..547908c 100644
--- a/node_modules/googlethis/lib/utils/constants.js
+++ b/node_modules/googlethis/lib/utils/constants.js
@@ -10,7 +10,7 @@ module.exports = {
   },
   SELECTORS: {
     // Organic Search Results 
-    TITLE: 'div.ynAwRc.q8U8x.MBeuO.gsrt.oewGkc.LeUQr',
+    TITLE: 'div.q8U8x.oewGkc.LeUQr',
     DESCRIPTION: 'div.MUxGbd.yDYNvb',
     URL: 'a.C8nzq.BmP5tf',

This issue body was partially generated by patch-package.

haskx commented 8 months ago

The answer is not that simple. There are quite a few changes that need to be made.

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.