I see.. that makes sense. Kind of new with python -- sorry for that.<br><br>after printing using this:<br><br>print urllib.urlopen(&#39;<a href="http://words.bighugelabs.com/api/2/e413f24801aa30b8d441ca43a64317be/moving/&#39;).read(">http://words.bighugelabs.com/api/2/e413f24801aa30b8d441ca43a64317be/moving/&#39;).read(</a>)<br>
<br>I&#39;m getting a format like this returned:<br><br>adjective|sim|streaming<br>adjective|sim|swirling<br>adjective|sim|tossing<br>adjective|sim|touching<br>adjective|sim|touring<br>adjective|sim|traveling<br>adjective|sim|tumbling<br>
<br>I assume I need to clean this up by reading past  &#39;Adjective|sim|&#39; to &#39;streaming&#39; and then returning it from lookup()..<br>this will be happening in the following:<br><br>urllib.urlopen(&#39;<a href="http://words.bighugelabs.com/api/2/e413f24801aa30b8d441ca43a64317be/moving/&#39;).read(SOMETHING">http://words.bighugelabs.com/api/2/e413f24801aa30b8d441ca43a64317be/moving/&#39;).read(SOMETHING</a> HERE)<br>
<br><br><br><div class="gmail_quote">On Wed, Jul 8, 2009 at 10:29 PM, Rich Lovely <span dir="ltr">&lt;<a href="mailto:roadierich@googlemail.com">roadierich@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">2009/7/9 Pete Froslie &lt;<a href="mailto:froslie@gmail.com">froslie@gmail.com</a>&gt;:<br>
</div><div class="im">&gt; No problem, thanks for taking the time.<br>
&gt;<br>
&gt; I&#39;m actually trying to resolve this error now:<br>
&gt;<br>
&gt;    buff.append(&quot; &quot;.join(lookup(Word) for Word in line.split()))<br>
&gt; NameError: global name &#39;lookup&#39; is not defined<br>
&gt;<br>
&gt; ..also assume I need to change &#39;Word&#39; to something that checks the next word<br>
&gt; in the text file and then replaces it with the one that is looked up..<br>
&gt; working on that now.<br>
&gt;<br>
&gt; Pete F<br>
<br>
</div>lookup() is the function that looks up the word in the thesaurus.  I<br>
left implementing that as an exercise for you, as I don&#39;t know the<br>
format of the reference you&#39;re using.<br>
<font color="#888888">--<br>
</font><div><div></div><div class="h5">Richard &quot;Roadie Rich&quot; Lovely, part of the JNP|UK Famile<br>
<a href="http://www.theJNP.com" target="_blank">www.theJNP.com</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Pete Froslie<br>617.314.0957<br><a href="http://www.froslie.net">http://www.froslie.net</a><br><br>