towfiqi / serpbear

Search Engine Position Rank Tracking App
https://docs.serpbear.com/
MIT License
1.45k stars 145 forks source link

Fix issue with proxy Scraper #249

Closed JvB94 closed 1 week ago

JvB94 commented 1 week ago

For some reason the scraper works with this package version of cheerio and not with the 1.0.0 version.

I don't know why but on my dev environment I had this version installed and it worked and in production it didn't. That's how I found the problem.

towfiqi commented 1 week ago

The latest version 1.0.0 works fine. reverting back introduces other issues. I will look into the proxy issue quite soon.

JvB94 commented 1 week ago

In proxy.ts it fails in line const $ = cheerio.load(content);

Idk why mabye you have a idea. Ofc it will be a better version to work with 1.0.0