From: Adam Akhtar Date: 2008-03-29T01:46:39+09:00 Subject: Re: hrpicot - cant extract what i want from page ok i have tried taking out the tbody tags completely and got some of the text back. Ill experiment to see if i can get all of it. Re: Tidy I installed the gem and i got the example code require 'tidy' Tidy.path = '/usr/lib/libtidy.so' html = 'titleBody' xml = Tidy.open(:show_warnings=>true) do |tidy| tidy.options.output_xml = true puts tidy.options.show_warnings xml = tidy.clean(html) puts tidy.errors puts tidy.diagnostics xml end puts xml now i have to change the path to whereever the lib is...well i foudn tidys folder in my lib directory and changed the above to this Tidy.path = 'C:\ruby\lib\ruby\gems\1.8\gems\tidy-1.1.2\lib\tidy\tidylib' and its complaining saying no such file... i tried Tidy.path = 'C:\ruby\lib\ruby\gems\1.8\gems\tidy-1.1.2\lib\tidy\tidylib.rb' as thats the proper extension of the tidylib file but again it wont work. I cant find any tidylib file with an extenision .so banging my head even more now ;-) -- Posted via http://www.ruby-forum.com/.