zlurad / serp-parser

Nodejs lib to parse Google SERP html pages
MIT License
43 stars 13 forks source link

Empty Organic Results at tag 0.4.1 #64

Closed marcelinhov2 closed 3 years ago

marcelinhov2 commented 4 years ago

Hey guys, I was using this package to parse results from my google scrapper but I'm not getting my organic results parsed anymore. Does anyone else is having this problem?

Thanks.

badluck13 commented 4 years ago

We are working on the fix, Google did one more update to move to Material and change the structure a bit. We'll have one working shortly

marcelinhov2 commented 4 years ago

Thanks for the feedback 👍

marcelinhov2 commented 3 years ago

Hey @badluck13, how are you doing? Any update about the issue?

Thanks.

badluck13 commented 3 years ago

Hi, @marcelinhov2 we just started working on it, and it will be done tomorrow. It's a lot to process and we want to keep coverage and testing on the same level as in previous versions

marcelinhov2 commented 3 years ago

Thank you very much @badluck13 👍

marcelinhov2 commented 3 years ago

Hey @badluck13, how are you? Any update? Can I help with something?

Thanks 🤘

badluck13 commented 3 years ago

HI, @marcelinhov2 please use the latest beta version: 0.5.0-beta.0 of the parser, it should work with organic for now. We are working on splitting the code for desktop and no-js parsers, and we are in transition to a new design. It will take some time, but for now, it should work for organics on the full google search results page.

marcelinhov2 commented 3 years ago

Hey, @badluck13 I tried to use the tag but got this problem:

image

badluck13 commented 3 years ago

Sorry to hear that. Can you make a small demo with your data so we can debug

marcelinhov2 commented 3 years ago

Sure, here it is: https://codepen.io/marcelinhov2/pen/QWEbeGe

badluck13 commented 3 years ago

Hm, it works on my end.

Can you try this on your js, put that page in test.html next to it:

const sp = require("serp-parser");
const fs = require("fs");

html = fs.readFileSync('test.html', { encoding: 'utf8' });
parser = new sp.GoogleSERP(html);

console.dir(parser.serp);
badluck13 commented 3 years ago

Here is it on the codesandbox https://codesandbox.io/s/thirsty-architecture-fnyii?file=/src/index.js

See result in the console: https://fnyii.csb.app/

marcelinhov2 commented 3 years ago

Ok it worked now, but the use have changed. That's why it didn't work the first time.

Thanks man.