Skip to content
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

Feature: something like Cheerio #355

Closed
dsseng opened this issue Apr 22, 2019 · 3 comments
Closed

Feature: something like Cheerio #355

dsseng opened this issue Apr 22, 2019 · 3 comments

Comments

@dsseng
Copy link
Contributor

dsseng commented Apr 22, 2019

It'll be awesome to have a web data mining tool like Cheerio in Deno. Cheerio is something like server-side jQuery

@zekth
Copy link
Contributor

zekth commented Apr 23, 2019

ref: https://github.com/cheeriojs/cheerio

@sh7dm please consider adding links for examples/refs.

@j-f1
Copy link

j-f1 commented Apr 25, 2019

I’d suggest that given the increasing capabilities of the native DOM APIs and Deno’s philosophy of sticking to the standards, using or porting jsdom seems wiser. It seems like it can already run in a web worker, so it would probably do fine in Deno if wrapped in an ES Module wrapper.

@kitsonk
Copy link
Contributor

kitsonk commented May 6, 2019

Porting jsdom would be a nightmare. It is huge and complex and has to be tightly coupled to Node.js at several levels. On top of that, the DOM APIs for querying are really not as usable as they should have, which is why things like jQuery came along in the first place. Given that, jQuery has a lot of baggage and I wouldn't consider it a modern API for querying DOM strings either.

That doesn't mean that some sort of DOM string querying tool would be useful, but I wouldn't want to use even something like cheerio. Any of the virtual DOM implementations would be a lot better and they are much better abstractions to the DOM.

I think generally though we should be talking about specific use cases and not just go and try to implement any sort of idea, like a bird collecting shiny objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants