<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: scrAPI cheat sheet</title>
	<atom:link href="http://labnotes.org/2006/09/05/scrapi-cheat-sheet/feed/" rel="self" type="application/rss+xml" />
	<link>http://labnotes.org/2006/09/05/scrapi-cheat-sheet/</link>
	<description></description>
	<lastBuildDate>Sun, 15 Jan 2012 21:29:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Arvind</title>
		<link>http://labnotes.org/2006/09/05/scrapi-cheat-sheet/comment-page-1/#comment-140453</link>
		<dc:creator>Arvind</dc:creator>
		<pubDate>Sat, 03 May 2008 06:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/09/05/scrapi-cheat-sheet/#comment-140453</guid>
		<description>You have done an incredible job with scrAPI. I am learning Ruby mainly to take advantage of your library. So far, I have only scraped one complex page and the process was smooth enough so far. I have to see if my code is going to be maintainable going forward. 

One thing I tried is enhancements suggested at http://www.quarkruby.com/2008/1/30/scrapi-enhancements/. I liked the idea but ran in to couple of issues with those changes. Are you planning to implement such feature? Their blog has also helped in using scrAPI.

One other thing I was wondering was can you point me to performance tips in using scrAPI and Tidy so that I can make sure my code is perf conscious. I hear horror stories about ruby performance in general.

Also, I noticed there is not much activity on scrAPI. Is there a plan to improve/maintain going forward.

Thank you for all your efforts in building scrAPI.</description>
		<content:encoded><![CDATA[<p>You have done an incredible job with scrAPI. I am learning Ruby mainly to take advantage of your library. So far, I have only scraped one complex page and the process was smooth enough so far. I have to see if my code is going to be maintainable going forward. </p>
<p>One thing I tried is enhancements suggested at <a href="http://www.quarkruby.com/2008/1/30/scrapi-enhancements/" rel="nofollow">http://www.quarkruby.com/2008/1/30/scrapi-enhancements/</a>. I liked the idea but ran in to couple of issues with those changes. Are you planning to implement such feature? Their blog has also helped in using scrAPI.</p>
<p>One other thing I was wondering was can you point me to performance tips in using scrAPI and Tidy so that I can make sure my code is perf conscious. I hear horror stories about ruby performance in general.</p>
<p>Also, I noticed there is not much activity on scrAPI. Is there a plan to improve/maintain going forward.</p>
<p>Thank you for all your efforts in building scrAPI.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Assaf</title>
		<link>http://labnotes.org/2006/09/05/scrapi-cheat-sheet/comment-page-1/#comment-125778</link>
		<dc:creator>Assaf</dc:creator>
		<pubDate>Sat, 06 Jan 2007 21:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/09/05/scrapi-cheat-sheet/#comment-125778</guid>
		<description>Scraper.define do
  array :tags
  result :tags
  process &quot;a[href][rel~=tag]&quot;, :tags=&gt;&quot;@href&quot;
end</description>
		<content:encoded><![CDATA[<p>Scraper.define do<br />
  array :tags<br />
  result :tags<br />
  process &#8220;a[href][rel~=tag]&#8220;, :tags=>&#8221;@href&#8221;<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edgar</title>
		<link>http://labnotes.org/2006/09/05/scrapi-cheat-sheet/comment-page-1/#comment-125636</link>
		<dc:creator>Edgar</dc:creator>
		<pubDate>Sat, 06 Jan 2007 18:57:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/09/05/scrapi-cheat-sheet/#comment-125636</guid>
		<description>I&#039;m just downloading scrAPI

What is the best way to retrieve all the tags (rel=tag) in every post in a feed?</description>
		<content:encoded><![CDATA[<p>I&#8217;m just downloading scrAPI</p>
<p>What is the best way to retrieve all the tags (rel=tag) in every post in a feed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Assaf</title>
		<link>http://labnotes.org/2006/09/05/scrapi-cheat-sheet/comment-page-1/#comment-11100</link>
		<dc:creator>Assaf</dc:creator>
		<pubDate>Mon, 11 Sep 2006 16:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/09/05/scrapi-cheat-sheet/#comment-11100</guid>
		<description>In CSS that would be: E&gt;F+D</description>
		<content:encoded><![CDATA[<p>In CSS that would be: E>F+D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gik</title>
		<link>http://labnotes.org/2006/09/05/scrapi-cheat-sheet/comment-page-1/#comment-11096</link>
		<dc:creator>gik</dc:creator>
		<pubDate>Mon, 11 Sep 2006 15:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/09/05/scrapi-cheat-sheet/#comment-11096</guid>
		<description>Assaf, 
I know about sources of CSS specification:)
But I propouse to add this selector to scrApi, not in CSS :)</description>
		<content:encoded><![CDATA[<p>Assaf,<br />
I know about sources of CSS specification:)<br />
But I propouse to add this selector to scrApi, not in CSS :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Assaf</title>
		<link>http://labnotes.org/2006/09/05/scrapi-cheat-sheet/comment-page-1/#comment-11094</link>
		<dc:creator>Assaf</dc:creator>
		<pubDate>Mon, 11 Sep 2006 15:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/09/05/scrapi-cheat-sheet/#comment-11094</guid>
		<description>gik,

CSS selectors are not part of the Ruby language, but part of the CSS specification. You can learn more about them in this article:

&lt;a href=&quot;http://www.xml.com/pub/a/2003/06/18/css3-selectors.html&quot; rel=&quot;nofollow&quot;&gt;http://www.xml.com/pub/a/2003/06/18/css3-selectors.html&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>gik,</p>
<p>CSS selectors are not part of the Ruby language, but part of the CSS specification. You can learn more about them in this article:</p>
<p><a href="http://www.xml.com/pub/a/2003/06/18/css3-selectors.html" rel="nofollow">http://www.xml.com/pub/a/2003/06/18/css3-selectors.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gik</title>
		<link>http://labnotes.org/2006/09/05/scrapi-cheat-sheet/comment-page-1/#comment-11056</link>
		<dc:creator>gik</dc:creator>
		<pubDate>Mon, 11 Sep 2006 10:16:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/09/05/scrapi-cheat-sheet/#comment-11056</guid>
		<description>...
E { F D - an D element which is child of E element parent of F element.

This will allow to scrape content from markup like this:

[e]
 [f][/f]
 [d]needed content[/d]
[/e]

[e]
 [z][/z]
 [d]fake content[/d]
[/e]

[e]
 [x][/x]
 [d]fake content[/d]
[/e]</description>
		<content:encoded><![CDATA[<p>&#8230;<br />
E { F D &#8211; an D element which is child of E element parent of F element.</p>
<p>This will allow to scrape content from markup like this:</p>
<p>[e]<br />
 [f][/f]<br />
 [d]needed content[/d]<br />
[/e]</p>
<p>[e]<br />
 [z][/z]<br />
 [d]fake content[/d]<br />
[/e]</p>
<p>[e]<br />
 [x][/x]<br />
 [d]fake content[/d]<br />
[/e]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gik</title>
		<link>http://labnotes.org/2006/09/05/scrapi-cheat-sheet/comment-page-1/#comment-11055</link>
		<dc:creator>gik</dc:creator>
		<pubDate>Mon, 11 Sep 2006 10:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/09/05/scrapi-cheat-sheet/#comment-11055</guid>
		<description>Again....
E </description>
		<content:encoded><![CDATA[<p>Again&#8230;.<br />
E</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gik</title>
		<link>http://labnotes.org/2006/09/05/scrapi-cheat-sheet/comment-page-1/#comment-11054</link>
		<dc:creator>gik</dc:creator>
		<pubDate>Mon, 11 Sep 2006 10:13:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/09/05/scrapi-cheat-sheet/#comment-11054</guid>
		<description>Hello Assaf, 
I am very new in ruby, and don&#039;t know language so well:)
As I could see it will be very usable to have selector like this:
&quot;E 
 
 needed content



 
 fake content



 
 fake content
</description>
		<content:encoded><![CDATA[<p>Hello Assaf,<br />
I am very new in ruby, and don&#8217;t know language so well:)<br />
As I could see it will be very usable to have selector like this:<br />
&#8220;E </p>
<p> needed content</p>
<p> fake content</p>
<p> fake content</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Assaf</title>
		<link>http://labnotes.org/2006/09/05/scrapi-cheat-sheet/comment-page-1/#comment-10546</link>
		<dc:creator>Assaf</dc:creator>
		<pubDate>Fri, 08 Sep 2006 21:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2006/09/05/scrapi-cheat-sheet/#comment-10546</guid>
		<description>Chris,

Not from the scrape method itself, but you can use Net::HTTP to make a POST request and pass the result body to the scrape method.

If enough people think it&#039;s useful, I can add convenience methods that would do POST and handle form submissions.</description>
		<content:encoded><![CDATA[<p>Chris,</p>
<p>Not from the scrape method itself, but you can use Net::HTTP to make a POST request and pass the result body to the scrape method.</p>
<p>If enough people think it&#8217;s useful, I can add convenience methods that would do POST and handle form submissions.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

