No, Harvest's Gatherer doesn't support cookies.
In Harvest 1.7.7, the default HTML enumerator was switched from
httpenum-breadth. The breadth first
enumerator had a bug in Local-Mapping, which was fixed in Harvest
1.7.19. To make Local-Mapping work, use depth first enumerator or
update to Harvest 1.7.19 or later.
Local mapping will fail if the file is not readable by the gatherer process, or the file is not a regular file, or the file has execute bits set, or the filename contains characters that have to be escaped (like tilde, space, curly brace, quote, etc). So, for directories, symbolic links and cgi scripts, the gatherer will always contact the server instead of using local file.
No, the Gatherer gathers Root- and LeafNode URLs only once. To check
the URLs periodically, you have to use cron (see "man 8 cron") to run
No, https is not supported by Harvest. To gather https URLs, use Harvest-ng from Simon Wilkinson. It is available at Harvest-ng homepage http://webharvest.sourceforge.net/ng/.
This is not on top of my to-do list and may take some time.
You will find a News URL hostname patch by Collin Smith in the contrib directory.
NOTE: Even though most web browsers support this, this violates RFC-1738.
Search option selects an enumerator for http and gopher URLs. Harvest comes with breadth first (Search=Breadth) and depth first (Search=Depth) enumerator for http and gopher. They have different strategy when following the URLs to get a list of candidates for processing. The breadth first enumerator processes all links in a level before descending to next level. In case of limiting the number of URLs to gather from a site, it will give you a more representative overview of the site. The depth first enumerator will descend to next level as soon as possible. When there are no links left for the current branch, it will process the next branch. The depth first enumerator doesn't use as much memory as the breadth first enumerator. If you don't have compelling reasons to switch from an enumerator to the other, the default value should be a reasonable choice.
Remove HTTP-Query from
versions earlier than 1.7.5, you also have to create a (symbolic) link
$HARVEST_HOME/lib/gatherer/HTTP-Query.sum. To do this, type:
# cd $HARVEST_HOME/lib/gatherer # ln -s HTML.sum HTTP-Query.sum
The gatherer's default setting is to sleep one second after retrieving an URL. This is to avoid an overload of the webserver. If you gather from webservers under your control and know that they can handle the additional load caused by the gatherer add "Delay=0" in your root node specification to disable the sleep.
The lines should look like:
<RootNodes> http://www.SOMESERVER.com/ Search=Breadth Delay=0 </RootNodes>
Alternatively, you can set the delay value for all root nodes by adding Acces-Delay: 0 in your configuration file.
It should look like:
Gatherer-Name: YOUR Gatherer Gatherer-Port: 8500 Top-Directory: /HARVEST_DIR/work1/gatherers/testgather Access-Delay: 0 <RootNodes> http://www.MYSITE.com/ Search=Breadth </RootNodes>
Harvest's gatherer is designed to handle many types of documents and many types of protocols. To achieve this flexibility it uses external programs to handle the different types of documents and protocols. For example, when gathering HTML documents via HTTP, the document is parsed twice. First to get list of candidates to gather and then to get a summary of the document. The summarizer is started each time when a document arrives, quits after summarizing that document and has to be restarted for the next document. Compared to more HTTP/HTML oriented approaches this causes a significant overhead when gathering HTTP/HTML only.
Harvest retrieves one document at a time which causes slowdown if you encounter a slow site. Due to implementation, the Gathering process is quite heavyweight and uses up to 25 MB of RAM per Gatherer. For this reason, there were no attempts to spawn more gatherers to optimize the bandwidth usage.
To send "Last Modified: xx" headers and get "304 Not Modified" answers from HTTP servers, add following line to the gatherer's configuration file:
If the document hasn't changed since last gathering, the gatherer will use the data from its database, instead of retrieving it again. This will save bandwidth and speed up gathering significantly.
When HTTP-If-Modified-Since is enabled, the candidate selection scheme of the http enumerators will change for successful database lookups. For unchanged URLs, the enumerators will behave more like depth first gatherer. The result of the gatherings should be the same if you are gathering all URLs of a site, but if you gather only parts of a site by using URL=n with n < number of URLs of a site you will get different subset of the system you gather.
The Gatherer uses GDBM databases to store its data on disk. Database files for Gatherer can grow very large depending on how much data you gather. On some systems, (e.g. i386 based Linux) the maximum file size is 2GB. If the amount of data surpasses this limit, the GDBM database file will be wiped from the disk.
The Gatherer's temporary GDMB database file WORKING.gdbm will grow very rapidly when gathering nested objects like tar, tar.gz, zip etc. archives. GDBM databases keep growing when tuples are inserted and deleted from them, because GDBM reuses only fractions of the empty filespace. To get rid of unused space, the GDBM database has to be reorganized. The reorganization however is slow and will slow down the gathering, so the default is not to reorganize the gatherer's temporary database. This should work well for small to medium sized Gatherers, but for large Gatherers it may be necessary to reorganize the temporary database during gathering to keep the size of the database at manageable level. To reorganize the WORKING.gdbm every 100 deletions add following line to your gatherer configuration file:
Essence-Options: --max-deletions 100
Don't set this value too low, since it will consume significant share of CPU time and disk I/O. Reorganizing every 10 to 100 deletions seems to be a reasonable value.
The perl module Metadata from Dave Beckett can dump data from Htdig database into a SOIF stream. Metadata only supports GDBM databases, so this only works with versions earlier than Htdig 3.1, because newer versions of Htdig switched from GDBM to Sleepycat's Berkeley DB.
Edit $HARVEST_HOME/gatherers/YOUR_GATHERER/data/gatherd.cf to allow or deny access. A line that begins with Allow is followed by any number of domain or host names that are allowed to connect to the Gatherer. If the word all is used, then all hosts are matched. Deny is the opposite of Allow. The following example will only allow hosts in the cs.colorado.edu or usc.edu domain access the Gatherer's database:
Allow cs.colorado.edu usc.edu Deny all
No. Harvest's Gatherer doesn't support WAP. Peer to peer services like Gnutella, Napster, etc. are also unsupported.
Changes in wu-ftpd 2.6.x broke
ftpget. There is a replacement for
it in contrib directory which wraps any ftp client to behave like
File URLs pointing to directories like file://misc/documents/ in LeafNodes are considered as nested object which will be unnested.
This may be caused by the site's robots.txt. You can check this by typing "http://www.SOME.SITE.com/robots.txt" into your favourite web browser.