Re: [Pharo-dev] Zinc bug submitting form via GET?

2014-03-02 Thread Sven Van Caekenberghe
Sean, On 02 Mar 2014, at 12:44, Sven Van Caekenberghe wrote: > Hi Sean, > > On 02 Mar 2014, at 06:49, Sean P. DeNigris wrote: > >> In porting the Mechanize web scraping library from Ruby, I started with the >> following example: >> a.get('http://google.com/') do |page| >> search_result = pa

Re: [Pharo-dev] Zinc bug submitting form via GET?

2014-03-02 Thread Pharo4Stef
On 02 Mar 2014, at 12:42, Sean P. DeNigris wrote: > Pharo4Stef wrote >> Sean how it is different from Soup? > > It adds a layer from a web browsing POV, so you can say "#submit this form" > and "#click the link whose text #beginsWith: 'Whatever'". I used Soup > underneath, since it is the very

Re: [Pharo-dev] Zinc bug submitting form via GET?

2014-03-02 Thread Sven Van Caekenberghe
Hi Sean, On 02 Mar 2014, at 06:49, Sean P. DeNigris wrote: > In porting the Mechanize web scraping library from Ruby, I started with the > following example: > a.get('http://google.com/') do |page| >search_result = page.form_with(:name => 'f') do |search| > search.q = 'Hello world' >

Re: [Pharo-dev] Zinc bug submitting form via GET?

2014-03-02 Thread Sean P. DeNigris
Pharo4Stef wrote > Sean how it is different from Soup? It adds a layer from a web browsing POV, so you can say "#submit this form" and "#click the link whose text #beginsWith: 'Whatever'". I used Soup underneath, since it is the very forgiving of the underlying html is malformed. Pharo4Stef wrot

Re: [Pharo-dev] Zinc bug submitting form via GET?

2014-03-02 Thread Pharo4Stef
which parser will you use to parse HTML? On 02 Mar 2014, at 06:49, Sean P. DeNigris wrote: > In porting the Mechanize web scraping library from Ruby, I started with the > following example: > a.get('http://google.com/') do |page| >search_result = page.form_with(:name => 'f') do |search| >

Re: [Pharo-dev] Zinc bug submitting form via GET?

2014-03-02 Thread Pharo4Stef
On 02 Mar 2014, at 06:49, Sean P. DeNigris wrote: > In porting the Mechanize web scraping library from Ruby, I started with the > following example: > a.get('http://google.com/') do |page| >search_result = page.form_with(:name => 'f') do |search| > search.q = 'Hello world' >end.sub

[Pharo-dev] Zinc bug submitting form via GET?

2014-03-01 Thread Sean P. DeNigris
In porting the Mechanize web scraping library from Ruby, I started with the following example: a.get('http://google.com/') do |page| search_result = page.form_with(:name => 'f') do |search| search.q = 'Hello world' end.submit It GETs http://www.google.com/search?ie=ISO-8859-1&hl=en