What is the best way to parse a web page in Ruby?

前端 未结 6 1818
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-24 08:41

I have been looking at XML and HTML libraries on rubyforge for a simple way to pull data out of a web page. For example if I want to parse a user page on stackoverflow how

6条回答
  •  [愿得一人]
    2020-12-24 09:29

    I always really like what Ilya Grigorik writes, and he wrote up a nice post about using hpricot.

    I also read this post a while back and it looks like it would be useful for you.

    Haven't done either myself, so YMMV but these seem pretty useful.

提交回复
热议问题