Replies: 1 comment
-
This library is an extension on top of got - it can only be slower than that as it does more. The purpose is to mimic real browser requests, so not to be faster than the original library, but rather to get around some bot detections, etc. Btw such tests are not very accurate, I ran your script now 3 times, and things were wildly different on each run, got scraping being faster than got in 2 out of 3 runs. I can observe ~2x slowdown on a less popular site with better performance, but as mentioned above - the goal is to get around blocking, not to be faster. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying
got-scraping
for a project, and noticed that it's almost 2x slower compared togot
and nativefetch
.Here's some basic test code:
Results (similar timing difference on multiple runs, even with other URLs):
My test machine is running Windows 11 and Node.js 18.12.1.
Why is
got-scraping
is slower, if not any faster, and can it be improved?Beta Was this translation helpful? Give feedback.
All reactions