If I comment out the first instance of 'list=(page/"div..." I'm able to get the script to load properly. As is, note that mouseHole will complain on the command-line that the script is broken (and also on the mouseHole apps page).
<br><br>~L<br><br><div><span class="gmail_quote">On 4/17/07, <b class="gmail_sendername">Josh Icuss</b> &lt;<a href="mailto:jicuss@gmail.com">jicuss@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sure. This is what I was working on for IFilm. Im looking to define
classes for each object to make it easier to work with and later store in a DB. Ive noticed that
Mousehole now supports SQLite databases. I like the direction your
taking the project. One thing I like about Scrapi is the built in class definitions.<br>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
require &#39;tidy&#39;<br>
require &#39;scrapi&#39;<br>
<br>
<br>
list=(page/&quot;div.similarlist&quot;/&#39;div.related_meta_data&#39;)<br>
<br>
related_media = Scraper.define do<br>
&nbsp; process &quot;a.title_link&quot;, :description=&gt;:text, :url=&gt;&quot;@href&quot;<br>
&nbsp; process &quot;p.stats&quot;, :stats=&gt;:text<br>
&nbsp; result :description, :url, :stats<br>
end<br>
<br>
class IFilm &lt; MouseHole::App<br>
&nbsp; title &quot;IFilm Ad remover&quot;<br>
&nbsp; namespace &#39;&#39;<br>
&nbsp; description &#39;removes ifilm ads&#39;<br>
&nbsp; version &quot;0.1&quot;<br>
&nbsp; + url(&quot;http://*.ifilm.com/*&quot;)<br>
&nbsp;# + url(&quot;<a href="http://www.ifilm.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.ifilm.com/</a>&quot;)<br>
&nbsp; <br>
&nbsp; def rewrite(page)<br>
&nbsp;&nbsp; (document/&quot;#HEADERAD&quot;).remove<br>
&nbsp;&nbsp; (document/&quot;div.ad-rectangle&quot;).inner_html=&quot;funtimes&quot;<br>
&nbsp;&nbsp; similar_videos=(document/&quot;div.similar_videos_div&quot;)<br>
&nbsp;&nbsp; (document/&quot;div[@id=&#39;SUPPLEMENT&#39;]&quot;).inner_html=similar_videos<br>
&nbsp;&nbsp; (document/&quot;div[@id=&#39;comment_box&#39;]&quot;).remove<br>
&nbsp;&nbsp; (document/&quot;div[@id=&#39;MYIFILM_BUMP&#39;]&quot;).remove<br>
&nbsp;&nbsp; (document/&quot;div[@id=&#39;FOOTER&#39;]&quot;).remove<br>
&nbsp;&nbsp; (document/&quot;h3[@id=&#39;UPLOAD&#39;]&quot;).remove<br>
&nbsp;&nbsp;&nbsp; (document/&quot;div[@id=&#39;HEADER&#39;]&quot;).remove<br>
&nbsp;&nbsp;&nbsp;&nbsp; (document/&quot;div[@id=&#39;TASKBAR&#39;]&quot;).remove<br>
&nbsp;list=(document/&quot;div.similarlist&quot;/&#39;div.related_meta_data&#39;)<br>
&nbsp;media_urls=list.collect{|x| related_media.scrape(x.inner_html).url}<br>
&nbsp;<br>
&nbsp;string=&quot;&lt;div id=&#39;nu&#39;&gt;&quot;<br>
&nbsp;media_urls.each do |x|<br>
&nbsp;string &lt;&lt; &quot;&lt;p&gt;&quot; &lt;&lt; x &lt;&lt; &quot;&lt;/p&gt;&quot;<br>
&nbsp;end<br>
&nbsp;string &lt;&lt; &quot;&lt;/div&gt;&quot;<br>
&nbsp;(document/&quot;div[@id=&#39;SUPPLEMENT&#39;]&quot;).inner_html=string<br>
&nbsp;<br>
&nbsp;<br>
&nbsp; end<br>
end<br>
<br>
<br>
<br>
<br>
<br><br><div><span class="gmail_quote">On 4/14/07, <b class="gmail_sendername">Leslie Wu</b> &lt;<a href="mailto:lwu.two@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lwu.two@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ah, you posted this to mousehole-scripters.<br><br>Do you have a sample where this breaks?<br><span><br>~L<br><br></span><div><span><span class="gmail_quote">On 4/11/07, <b class="gmail_sendername">Josh Icuss
</b> &lt;<a href="mailto:jicuss@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jicuss@gmail.com</a>&gt; wrote:</span></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><span>Im realy digging the new syntax. Hpricot is a well developed choice. Having trouble loading the Scrapi gem. any known issues?
<br>require &#39;tidy&#39; or require &#39;scrapi&#39; causes the script not to load. Also could anyone provide a quick insert_before example?
<br>
<br></span><span>_______________________________________________<br>Mousehole-scripters mailing list<br><a href="mailto:Mousehole-scripters@rubyforge.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

Mousehole-scripters@rubyforge.org
</a><br><a href="http://rubyforge.org/mailman/listinfo/mousehole-scripters" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://rubyforge.org/mailman/listinfo/mousehole-scripters</a><br></span></blockquote>


</div><br>
</blockquote></div><br><br>
<br>_______________________________________________<br>Mousehole-scripters mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Mousehole-scripters@rubyforge.org">Mousehole-scripters@rubyforge.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://rubyforge.org/mailman/listinfo/mousehole-scripters" target="_blank">http://rubyforge.org/mailman/listinfo/mousehole-scripters</a><br></blockquote>
</div><br>