-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce dependency overhead #17
Comments
JSDOM can't be replaced with Cheerio. The goal of JSDOM is to provide an identical DOM environment as what we see in the browser. And about user-agents, yes I might remove this in the future. |
Thanks for the answer. |
It's used here both for retrieving form data and solving challenges from Cloudflare. Lines 11 to 33 in fd80462
|
@sayem314 can I suggest you use top-user-agents? It's just a JSON of user agents, updated every time you fetch the package. 849 bytes of package 🙂 |
jsdom and user-agents bloat this package to 6.2 MB minified.
I suggest making the user agent user supplied and replacing jsdom with cheerio or something like this.
The text was updated successfully, but these errors were encountered: