<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Ruby WWW::Mechanize 0.6.1 (Chuck)</title>
	<atom:link href="http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/feed/" rel="self" type="application/rss+xml" />
	<link>http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/</link>
	<description>The act of making love, tenderly.</description>
	<pubDate>Thu, 20 Nov 2008 17:24:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Aaron Patterson</title>
		<link>http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-30018</link>
		<dc:creator>Aaron Patterson</dc:creator>
		<pubDate>Fri, 23 May 2008 15:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-30018</guid>
		<description>&lt;p&gt;What version of hpricot do you have installed?  What version of mechanize?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What version of hpricot do you have installed?  What version of mechanize?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hakeem Missa</title>
		<link>http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-30014</link>
		<dc:creator>Hakeem Missa</dc:creator>
		<pubDate>Fri, 23 May 2008 14:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-30014</guid>
		<description>&lt;p&gt;I am trying to use www::mechanize with Aptana radrails for windows to scrape a website, but Anytime I run the line :
page = agent.get(url) I get an error :
undefined method `inner_text' for #&lt;/p&gt;

&lt;p&gt;Is anyone familiar with the solution to this problem ?&lt;/p&gt;

&lt;p&gt;I have the following application environment :&lt;/p&gt;

&lt;p&gt;Ruby version 1.8.6 (i386-mswin32) 
RubyGems version 0.9.2 
Rails version 1.2.3 &lt;/p&gt;

&lt;p&gt;Thanks,
HM&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I am trying to use www::mechanize with Aptana radrails for windows to scrape a website, but Anytime I run the line :<br />
page = agent.get(url) I get an error :<br />
undefined method `inner_text&#8217; for #</p>
<p>Is anyone familiar with the solution to this problem ?</p>
<p>I have the following application environment :</p>
<p>Ruby version 1.8.6 (i386-mswin32)<br />
RubyGems version 0.9.2<br />
Rails version 1.2.3 </p>
<p>Thanks,<br />
HM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-13312</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Mon, 13 Aug 2007 22:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-13312</guid>
		<description>&lt;p&gt;I try to log in to a page via a post-from.&lt;/p&gt;

&lt;p&gt;My code looks like this:&lt;/p&gt;

&lt;p&gt;agent = WWW::Mechanize.new
agent.user&lt;em&gt;agent&lt;/em&gt;alias = "Windows IE 6" # tried other agents as well
page = agent.post(URI.parse('http://www.nzb.to/')) 
link = page.links.text("einloggencome in")
page = agent.click(link)
form = page.forms[1]
form["username"]= "energydrink"
form["pass"] = "energydrink"
puts agent.cookies.size
puts "duppidoo" if page.body =~ /eingeloggt .* energydrink/&lt;/p&gt;

&lt;p&gt;I tried it like this on an other page, an it works fine.
But on this page...i tried but i it over and over but it doesn't seem to work.&lt;/p&gt;

&lt;p&gt;On this page exists 3 forms with all the same name (called "form1"). Could this be a problem?&lt;/p&gt;

&lt;p&gt;Has anyone an idea that could help?&lt;/p&gt;

&lt;p&gt;Thanks in advance&lt;/p&gt;

&lt;p&gt;Pete&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I try to log in to a page via a post-from.</p>
<p>My code looks like this:</p>
<p>agent = WWW::Mechanize.new<br />
agent.user<em>agent</em>alias = &#8220;Windows IE 6&#8243; # tried other agents as well<br />
page = agent.post(URI.parse(&#8217;http://www.nzb.to/&#8217;))<br />
link = page.links.text(&#8221;einloggencome in&#8221;)<br />
page = agent.click(link)<br />
form = page.forms[1]<br />
form["username"]= &#8220;energydrink&#8221;<br />
form["pass"] = &#8220;energydrink&#8221;<br />
puts agent.cookies.size<br />
puts &#8220;duppidoo&#8221; if page.body =~ /eingeloggt .* energydrink/</p>
<p>I tried it like this on an other page, an it works fine.<br />
But on this page&#8230;i tried but i it over and over but it doesn&#8217;t seem to work.</p>
<p>On this page exists 3 forms with all the same name (called &#8220;form1&#8243;). Could this be a problem?</p>
<p>Has anyone an idea that could help?</p>
<p>Thanks in advance</p>
<p>Pete</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Patterson</title>
		<link>http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-8613</link>
		<dc:creator>Aaron Patterson</dc:creator>
		<pubDate>Thu, 31 May 2007 15:52:09 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-8613</guid>
		<description>&lt;p&gt;Hey Pat.  When I worked with Joe on his problem, I found that the source for the page contained malformed HTML.  Can you send the HTML to me, or the mailing list?  Then I can take a look and tell you what the problem is.&lt;/p&gt;

&lt;p&gt;If you don't want to send in the original, it would be helpful if you could trim the html down to the smallest example that reproduces the problem.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey Pat.  When I worked with Joe on his problem, I found that the source for the page contained malformed HTML.  Can you send the HTML to me, or the mailing list?  Then I can take a look and tell you what the problem is.</p>
<p>If you don&#8217;t want to send in the original, it would be helpful if you could trim the html down to the smallest example that reproduces the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patalope</title>
		<link>http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-8584</link>
		<dc:creator>Patalope</dc:creator>
		<pubDate>Thu, 31 May 2007 13:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-8584</guid>
		<description>&lt;p&gt;I have the same issue as Joseph Coffey - I'm trying to access a login form that clearly has input fields for username and password. But the only fields mechanize sees are the hidden fields. &lt;/p&gt;

&lt;p&gt;Like Joseph's, my page is full of javascript that manipulates page elements. But when you strip it all away, it's just plain:
form 
 input type = "text" name= "user"
 input type = "password" name = "password"
 input type= "submit" name="login"&lt;/p&gt;

&lt;p&gt;input type="hidden" value="whatever"
 input type= "hidden" value="whatever2"
/form&lt;/p&gt;

&lt;p&gt;...but when I pp the form in mechanize, it only sees the hidden ones. &lt;/p&gt;

&lt;p&gt;I could probably supply the source for the page if it would help, but I'd have to clean it up because it's something internal.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Pat&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have the same issue as Joseph Coffey - I&#8217;m trying to access a login form that clearly has input fields for username and password. But the only fields mechanize sees are the hidden fields. </p>
<p>Like Joseph&#8217;s, my page is full of javascript that manipulates page elements. But when you strip it all away, it&#8217;s just plain:<br />
form<br />
 input type = &#8220;text&#8221; name= &#8220;user&#8221;<br />
 input type = &#8220;password&#8221; name = &#8220;password&#8221;<br />
 input type= &#8220;submit&#8221; name=&#8221;login&#8221;</p>
<p>input type=&#8221;hidden&#8221; value=&#8221;whatever&#8221;<br />
 input type= &#8220;hidden&#8221; value=&#8221;whatever2&#8243;<br />
/form</p>
<p>&#8230;but when I pp the form in mechanize, it only sees the hidden ones. </p>
<p>I could probably supply the source for the page if it would help, but I&#8217;d have to clean it up because it&#8217;s something internal.</p>
<p>Thanks</p>
<p>Pat</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Coffey</title>
		<link>http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-1691</link>
		<dc:creator>Joseph Coffey</dc:creator>
		<pubDate>Sat, 27 Jan 2007 08:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-1691</guid>
		<description>&lt;p&gt;Hey,&lt;/p&gt;

&lt;p&gt;Has anyone successfully logged in to Netflix using Mechanize?  I am
pretty new at this, but I tried to follow the "guides" instructions.
However it seems that the login page for netflix uses Javascript to
process its form, and so isn't parsed correctly by Mechanize - or at
least must be handled differently than those examples covered in the
guide.&lt;/p&gt;

&lt;p&gt;The login url for Netflix is http://www.netflix.com/Login?  (Actually
there seem to be many possible urls for this.  I'm not sure what they
are using the urls to track)&lt;/p&gt;

&lt;p&gt;The trouble is that when I pretty print what Mechanize fetches, while
there is a form called login, it doesn't have any login fields to
speak of.  Instead the submit button fires off a javascript which (I
assume) reads in two other text boxes on the page "password" and
"email".  One can see these fields in the source.  However they don't
seem to lie within form. I don't know how to set these other fields
values, because at least in the examples Mechanize only modifies
form.field not just any old field hanging out in the wild.&lt;/p&gt;

&lt;p&gt;Joe&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>Has anyone successfully logged in to Netflix using Mechanize?  I am<br />
pretty new at this, but I tried to follow the &#8220;guides&#8221; instructions.<br />
However it seems that the login page for netflix uses Javascript to<br />
process its form, and so isn&#8217;t parsed correctly by Mechanize - or at<br />
least must be handled differently than those examples covered in the<br />
guide.</p>
<p>The login url for Netflix is <a href="http://www.netflix.com/Login?" rel="nofollow" onclick="javascript:urchinTracker ('/outbound/comment/www.netflix.com');">http://www.netflix.com/Login?</a>  (Actually<br />
there seem to be many possible urls for this.  I&#8217;m not sure what they<br />
are using the urls to track)</p>
<p>The trouble is that when I pretty print what Mechanize fetches, while<br />
there is a form called login, it doesn&#8217;t have any login fields to<br />
speak of.  Instead the submit button fires off a javascript which (I<br />
assume) reads in two other text boxes on the page &#8220;password&#8221; and<br />
&#8220;email&#8221;.  One can see these fields in the source.  However they don&#8217;t<br />
seem to lie within form. I don&#8217;t know how to set these other fields<br />
values, because at least in the examples Mechanize only modifies<br />
form.field not just any old field hanging out in the wild.</p>
<p>Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Patterson</title>
		<link>http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-86</link>
		<dc:creator>Aaron Patterson</dc:creator>
		<pubDate>Sat, 30 Sep 2006 17:47:31 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-86</guid>
		<description>&lt;p&gt;I'm glad someone gets it.  :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad someone gets it.  <img src='http://tenderlovemaking.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paragon</title>
		<link>http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-70</link>
		<dc:creator>Paragon</dc:creator>
		<pubDate>Fri, 29 Sep 2006 06:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2006/09/23/ruby-wwwmechanize-061-chuck/#comment-70</guid>
		<description>&lt;p&gt;Mechanize seems trapped in the closet.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Mechanize seems trapped in the closet.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
