Hi,
There is a need to find a specific DIV in a large HTML file (by it’s
ID/CLASS) as a routine.
Perhaps XML approach could have helped me, using REXML but what function
goes and searches through the whole XML and finds a specific TAG by it’s
attribute?
Someone suggest that myxml will be used for it, but it’s installation
didn’t, yet, go well.
c:/instantrails/ruby/lib/ruby/site_ruby/myxml/myxml.rb:243:in initialize': No such file or directory - test.xml (Errno::ENOENT) from c:/instantrails/ruby/lib/ruby/site_ruby/myxml/myxml.rb:243:ininitialize’
from example10.rb:6
Many many thanks to you all,
I got very emotional after seeing all of your kind and helpful
responses.
I am a beginner in this Forum and it’s a pleasure to see such a beutiful
and helpful community, I’ll do my best to pay back my share!
Many many thanks to you all,
I got very emotional after seeing all of your kind and helpful
responses.
I am a beginner in this Forum and it’s a pleasure to see such a beutiful
and helpful community, I’ll do my best to pay back my share!
Please note, though, that “this Forum” is really a Web front-end to an
active mailing list (ruby-talk).
Please note, though, that “this Forum” is really a Web front-end to an
active mailing list (ruby-talk).
hhmmm! will be checked,
anyways - i am doing very well with Mechanize now, but have an itching
problem -
I want to take the DIV from a page with certain encoding (WINDOWS-1255)
and put it in a UTF8 page.
Is there any thing that does the conversion needed?
WOW! It works amazing amazingly well! I steel have a problem that i seem
to be unable to use Mechanize to get information from pages on the same
server (i am using Webrick), perhaps it is that Webrick can not run two
instances together?
WOW! It works amazing amazingly well! I steel have a problem that i seem
to be unable to use Mechanize to get information from pages on the same
server (i am using Webrick), perhaps it is that Webrick can not run two
instances together?
Are you by any chance trying to get Mechanize to read a Rails app’s own
pages from within a request?
WOW! It works amazing amazingly well! I steel have a problem that i seem
to be unable to use Mechanize to get information from pages on the same
server (i am using Webrick), perhaps it is that Webrick can not run two
instances together?
Are you by any chance trying to get Mechanize to read a Rails app’s own
pages from within a request?
Please note, though, that “this Forum” is really a Web front-end to an
active mailing list (ruby-talk).
hhmmm! will be checked,
anyways - i am doing very well with Mechanize now, but have an itching
problem -
I want to take the DIV from a page with certain encoding (WINDOWS-1255)
and put it in a UTF8 page.
Is there any thing that does the conversion needed?
Thx,
Dor.
PLUS - It seems mechanize can not get pages from http://localhost:3000/… (WEBRICK), any suggestions?
Exactamondo!
Thought so… This came up recently on the rails list. Rails is
single-threaded - WEBrick isn’t, but Rails limits itself by default
because (I think) it can’t guarantee that the app’s methods are
threadsafe.
What are you trying to do, exactly? If the Rails app generated the page
in the first place, surely it has the raw information at hand not to
need to scrape the HTML to find it again?
Exactamondo!
Thought so… This came up recently on the rails list. Rails is
single-threaded - WEBrick isn’t, but Rails limits itself by default
because (I think) it can’t guarantee that the app’s methods are
threadsafe.
What are you trying to do, exactly? If the Rails app generated the page
in the first place, surely it has the raw information at hand not to
need to scrape the HTML to find it again?
that’s right, … but i still want it !
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.