Skip to content

Remove cheerio, use DOMParser API #7

Open
@danBamikiya

Description

I just found out the browser has a DOMParser API that provides an interface for parsing XML and HTML.

This can be used instead of Cheerio to parse HTML in the webscraper. Reducing the build size because Cheerio is adding a whooping almost 400 KiB as a dependency in production builds.

The total build size for all javascript files is 438 KiB as of the last build run out of which Cheerio is taking almost almost 400 KiB 🤯

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

enhancementNew feature or requestproductImprovements or changes to the product

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions