I see.. that makes sense. Kind of new with python -- sorry for that.<br><br>after printing using this:<br><br>print urllib.urlopen('<a href="http://words.bighugelabs.com/api/2/e413f24801aa30b8d441ca43a64317be/moving/').read(">http://words.bighugelabs.com/api/2/e413f24801aa30b8d441ca43a64317be/moving/').read(</a>)<br>
<br>I'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 'Adjective|sim|' to 'streaming' and then returning it from lookup()..<br>this will be happening in the following:<br><br>urllib.urlopen('<a href="http://words.bighugelabs.com/api/2/e413f24801aa30b8d441ca43a64317be/moving/').read(SOMETHING">http://words.bighugelabs.com/api/2/e413f24801aa30b8d441ca43a64317be/moving/').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"><<a href="mailto:roadierich@googlemail.com">roadierich@googlemail.com</a>></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 <<a href="mailto:froslie@gmail.com">froslie@gmail.com</a>>:<br>
</div><div class="im">> No problem, thanks for taking the time.<br>
><br>
> I'm actually trying to resolve this error now:<br>
><br>
> buff.append(" ".join(lookup(Word) for Word in line.split()))<br>
> NameError: global name 'lookup' is not defined<br>
><br>
> ..also assume I need to change 'Word' to something that checks the next word<br>
> in the text file and then replaces it with the one that is looked up..<br>
> working on that now.<br>
><br>
> 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't know the<br>
format of the reference you're using.<br>
<font color="#888888">--<br>
</font><div><div></div><div class="h5">Richard "Roadie Rich" 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>