zlurad / serp-parser

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

ERR_INVALID_URL #55

Closed stephenkeep-eurostar closed 4 years ago

stephenkeep-eurostar commented 4 years ago

I am getting an error when trying to get the SERP data from this query:

https://www.google.com/search?q=things+to+do+in+paris

Here is the error I am getting:

TypeError [ERR_INVALID_URL]: Invalid URL: /aclk?sa=l&ai=DChcSEwjFq8SGp7_nAhURboYKHch9B64YABABGgJ2dQ&ae=1&sig=AOD64_0JWC2vYtYgE3zABvQ2HPA8ExqmMw&adurl=https://www.airbnb.com/s/Paris/things-to-do%3Frefinement_paths%5B%5D%3D/things_to_do/%26af%3D8781787%26c%3D.pi0.pk44417100850_233371952286_c_299862761468%26gclid%3DEAIaIQobChMIxavEhqe_5wIVEW6GCh3IfQeuEAAYAiAAEgLK3_D_BwE&q=

It seems to be an error with handling the Ad URLs.

badluck13 commented 4 years ago

Hi @stephenkeep-eurostar

Seems they changed the way it handles href on the ad links, it will be fixed on the next version.

We'll ship it in the next day or two.

stephenkeep-eurostar commented 4 years ago

Amazing thanks!

badluck13 commented 4 years ago

@stephenkeep-eurostar it should work now with serp-parser v0.4.1

marcelinhov2 commented 2 years ago

hey @badluck13, I think this error is back. image