egonSchiele / HandsomeSoup

Easy HTML parsing for Haskell
http://egonschiele.github.com/HandsomeSoup
BSD 3-Clause "New" or "Revised" License
124 stars 20 forks source link

CSS3 and jQuery selectors support? #2

Closed nebuta closed 11 years ago

nebuta commented 12 years ago

I am a Haskell beginner, and I liked HXT and HandsomeSoup very much. This is the only HTML library by Haskell I've found so far that has easy-to-use and powerful traversing functions.

I was wondering, is there any plan for you to implement CSS3 and/or jQuery selectors? If those are supported, I think this library can be a standard library for HTML scraping in Haskell.

egonSchiele commented 12 years ago

I think this is a good idea. Are there some selectors in particular that you're looking for?

nebuta commented 12 years ago

:contains, :has, ~, :nth-child, :visible, etc. Also, some jQuery traversing methods such as nextAll(), parents(), etc should also be useful.

http://api.jquery.com/category/selectors/jquery-selector-extensions/

Thanks.

egonSchiele commented 12 years ago

Ok, I will work on supporting CSS3. jQuery selectors might be a while.

nebuta commented 12 years ago

Thanks, I will look into HXT and HandsomeSoup and find some applications (probably with server framework such as Yesod.)

egonSchiele commented 11 years ago

Closing this, I don't see it happening anytime soon :/ If you send me a pull request, I'll merge it.