search for: mechanize01

Displaying 1 result from an estimated 1 matches for "mechanize01".

Did you mean: mechanize
2007 Jul 12
1
WWW::Mechanize::Link.inspect needs some TLC
...page = agent.get("http://www.google.com/") search_form = page.forms.name("f").first search_form.fields.name("q").value = "bratislava tournament" search_results = agent.submit(search_form) puts search_results.body Given this ruby-debug session: bugs $ rdebug mechanize01.rb ./mechanize01.rb:1 require ''rubygems'' (rdb:1) b 11 Set breakpoint 1 at mechanize01.rb:11 (rdb:1) c Breakpoint 1 at mechanize01.rb:11 ./mechanize01.rb:11 puts search_results.body (rdb:1) p page.links[0].inspect.size 1521039 # That''s way too big, since the page is a simp...