I could use the help of some more experienced pluckers. I am trying to pluck a web page with the following URL:
http://evol.allenpress.com/evolonline/?request=get-
toc&issn=0014-3820&volume=056&issue=11

My first attempt at this produced the error show below. So, I thought I would try the example from the documentation.
(http://docs.plkr.org/node64.html#2527). I created a shell script file called pluckevol that does:
#!/bin/sh

plucker-build -f Evolution --category=Journal ~/.plucker/evol.html ;
cp ~/.plucker/Evolution.pdb ~/Documents/Palm/Users/Pat\ Lorch/Files\ to\ Install ;


to process evol.html:
<HTML>
<HEAD>
<TITLE>Evolution Home Page</TITLE>

</HEAD>

<BODY>

<H1>Evolution Home</H1>

<H2>Latest Volume</H2>
<!--
<A HREF="http://evol.allenpress.com/evolonline/"; POST="get-
toc&issn=0014-3820&volume=056&issue=11" NOIMAGES MAXDEPTH=2>Current
Evolution Volume</A>
-->
<A HREF="http://harvest.weather.com/cgi-
bin/3com/avantgo/palmpilot_city_search.pl" POST="city_destination=46552&action=Go">Weather</A><P>


<P>
</BODY>
</HTML>

Here is the error I get. It looks like a bug in the code.

From Spyder.py:
...
urltext = url.as_string (with_fragment=0)
# if there are parameters, we add them back on
if post_data is not None:
urltext_key = urltext_key + post_data
else:
urltext_key = urltext
# OK, now that we know the URL used as the mapping key, check it
...
Should the second urltext_key be urltext?

Here is the error:

% ./pluckevol
Pluckerdir is '/Volumes/Grape_iMac333/plorch/.plucker'...
---- 0 collected, 1 to do ----
Processing file:/Volumes/Grape_iMac333/plorch/.plucker/evol.html...
Retrieved ok.
Parsed ok; added 1 document link.
---- 1 collected, 1 to do ----
Processing http://harvest.weather.com/cgi-
bin/3com/....._city_search.pl...
Traceback (most recent call last):
File "/usr/local/bin/plucker-build", line 1532, in ?
sys.exit(realmain())
File "/usr/local/bin/plucker-build", line 1524, in realmain
retval = main (config, exclusion_lists)
File "/usr/local/bin/plucker-build", line 1023, in main
spider.process_all(verbose=verbosity)
File "/usr/local/bin/plucker-build", line 579, in process_all
self.process (verbose, estimate, statusfile)
File "/usr/local/bin/plucker-build", line 665, in process
urltext_key = urltext_key + post_data
UnboundLocalError: local variable 'urltext_key' referenced before assignment


Dr. Patrick D. Lorch






Dr. Patrick D. Lorch
Zoology Dept. W: 416-946-7223
University of Toronto F: 416-978-8532
Ramsay Wright Labs [EMAIL PROTECTED]
25 Harbord St. http://www.zoo.utoronto.ca/lrowe/plorch
Toronto, Ontario M5S 3G5
CANADA

Public encryption key available upon request.

_______________________________________________
plucker-list mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-list

Reply via email to