2

Is there any way I can parse a remote html page, in Ruby, preferably using jQuery like selectors?

For example, I could select all the div having a specific class, and get the content of all those elements in an array.

I was trying to use Regex for this, but I think using XML parser would be better.

Dogbert
  • 212,659
  • 41
  • 396
  • 397

1 Answers1

1

I found hpricot is very similar.

Nicholas
  • 7,403
  • 10
  • 48
  • 76
user326922
  • 103
  • 1
  • 5