Scrubyt: Using big5 strings in query_field for fill_textfield
Posted
by kuribo
on Stack Overflow
See other posts from Stack Overflow
or by kuribo
Published on 2010-05-19T01:29:45Z
Indexed on
2010/05/19
1:40 UTC
Read the original article
Hit count: 289
Does anyone know of a way to get fill_textfield to accept a big5-encoded string in the query_field? I keep getting an "unterminated string meets end of file" error with this:
require 'rubygems'
require 'scrubyt'
search_data = Scrubyt::Extractor.define do
fetch 'http://www.google.com/ncr'
fill_textfield 'q', '????'
submit
end
© Stack Overflow or respective owner