scrubyt anyone?

A

Audrey A Lee

Hi,

Are any of you using scrubyt?

Scrubyt has a forum but it seems near death.

But, this mail-list has a good group of very sharp and knowledgeable
rubyists.

I have installed the scrubyt demos:
- git clone git://github.com/scrubber/scrubyt_examples.git

I tried this one:

$ ruby ruby_quiz_189.rb
/pt/r1/lib/ruby/gems/1.8/gems/scrubyt-0.4.1/lib/scrubyt/core/scraping/
filters/download_filter.rb:19:in
`download_file': undefined method `include?' for nil:NilClass
(NoMethodError)
from /pt/r1/lib/ruby/gems/1.8/gems/scrubyt-0.4.1/lib/scrubyt/
core/scraping/filters/download_filter.rb:8:in
`evaluate'
from /pt/r1/lib/ruby/gems/1.8/gems/scrubyt-0.4.1/lib/scrubyt/
core/scraping/pattern.rb:250:in
`evaluate'

I'd welcome any hints on how to debug ruby_quiz_189.rb so it will run.

scrubyt depends on some other gems:

hpricot
mechanize

Here is what I have:

$ gem list hpricot

*** LOCAL GEMS ***

hpricot (0.6.164)

$ gem list mechanize

*** LOCAL GEMS ***

mechanize (0.9.3)

Thanks!
 
T

Thorsten Hater

Hi,

which ruby version are you using?
I had (and have) massive problems using 1.9
and scrubyt. I submitted a series of small fixes
to scrubyt on the Google Groups list, but they
don't seem to be in the latest github version.
After those fixes it seems mechanize/nokogiri
does not play well with 1.9 and scrubyt.

Good luck.
 
M

Mike Dalessio

[Note: parts of this message were removed to make it a legal post.]

Could you be more specific about what problems you are seeing with
Mechanize/Nokogiri? Both libraries successfully pass their test suites on
1.9.

I'm unable to make scrubyt's 6 tests pass on any version of Ruby.
 
T

Thorsten Hater

Ok, so this seems to be a problem of scrubyt, then. I only
tried ruby 1.9 and could not make the test pass.
After some fiddling with scrubyts code, the error came deep
from inside mechanize, as far as I recall, something like
an unexpected nil running loose.
So I put the blame to mechanize, seems that was too fast.
The fixes I introduced were mainly 1.9 specific things, like the
usage of jcode and case syntax.

To quote my post to the google groups list:
1) /scrubyt/utils/simple_example_lookup.rb:18: syntax error,
unexpected $end, expecting ')'
text.gsub!('»', '»')
Solution: insert "#coding UTF-8" at the top of the file
2) /scrubyt/core/navigation/agents/firewatir.rb:52: syntax error,
unexpected ':', expecting keyword_then or ',' or ';' or
'\n' (SyntaxError)
when 'file': @@agent.goto("file://"+ @@cu...
Solution: replace ":" ---> "then"

Afterwards the tests still fail with 6 errors.

Thorsten
 
R

Ryan Davis

Could you be more specific about what problems you are seeing with
Mechanize/Nokogiri? Both libraries successfully pass their test
suites on
1.9.

I'm unable to make scrubyt's 6 tests pass on any version of Ruby.

HAHAHA! You noticed that too!?!?

OMG I love you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top