LuanRT / google-this

A simple yet powerful module to retrieve organic search results and much more from Google.

Home Page:https://www.npmjs.com/package/googlethis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v1.8.0 create patch for title update

haskx opened this issue Β· comments

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.

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

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.