5

I'm looking for a good way to parse HTML in Clojure.

Exactly what I'm trying to do is get content of a web page with crawler and then get content of some HTML tags or their attributes.

So I have URL to the page, and I get html as String, but how do get data I need?

1 Answer 1

6

Use https://github.com/cgrand/enlive It allows you to select and retrieve with CSS-alike selectors.

Or https://github.com/nathell/clj-tagsoup

I am not experienced with tag-soup but I can tell that enlive works well for most scraping.

Sign up to request clarification or add additional context in comments.

1 Comment

thanks. I have already heard about enlive. Will give it a try

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.