| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title> |
| 5 |
ht://Dig: htdig |
| 6 |
</title> |
| 7 |
</head> |
| 8 |
<body bgcolor="#eef7ff"> |
| 9 |
<h1> |
| 10 |
htdig |
| 11 |
</h1> |
| 12 |
<p> |
| 13 |
ht://Dig Copyright © 1995-2004 <a href="THANKS.html">The ht://Dig Group</a><br> |
| 14 |
Please see the file <a href="COPYING">COPYING</a> for |
| 15 |
license information. |
| 16 |
</p> |
| 17 |
<hr size="4" noshade> |
| 18 |
<dl> |
| 19 |
<dd> |
| 20 |
<h2> |
| 21 |
Synopsis |
| 22 |
</h2> |
| 23 |
</dd> |
| 24 |
<dd> |
| 25 |
htdig [<em>options</em>] [<em>start_url_file</em>] |
| 26 |
</dd> |
| 27 |
</dl> |
| 28 |
<dl> |
| 29 |
<dd> |
| 30 |
<h2> |
| 31 |
Description |
| 32 |
</h2> |
| 33 |
</dd> |
| 34 |
<dd> |
| 35 |
Htdig retrieves HTML documents using the HTTP protocol and |
| 36 |
gathers information from these documents which can later be |
| 37 |
used to search these documents. This program can be |
| 38 |
referred to as the search robot. |
| 39 |
</dd> |
| 40 |
</dl> |
| 41 |
<dl> |
| 42 |
<dd> |
| 43 |
<h2> |
| 44 |
Options |
| 45 |
</h2> |
| 46 |
</dd> |
| 47 |
<dd> |
| 48 |
<dl compact> |
| 49 |
<dt> |
| 50 |
-a |
| 51 |
</dt> |
| 52 |
<dd> |
| 53 |
Use alternate work files. Tells htdig to append <em> |
| 54 |
.work</em> to database files, causing a second copy of |
| 55 |
the database to be built. This allows the original |
| 56 |
files to be used by htsearch during the indexing run. When |
| 57 |
used without the "-i" flag for an update dig, htdig will |
| 58 |
use any existing .work files for the databases to update. |
| 59 |
</dd> |
| 60 |
<dt> |
| 61 |
-c <em>configfile</em> |
| 62 |
</dt> |
| 63 |
<dd> |
| 64 |
Use the specified <em>configfile</em> file instead of the |
| 65 |
default. |
| 66 |
</dd> |
| 67 |
<dt> |
| 68 |
-h <em>maxhops</em> |
| 69 |
</dt> |
| 70 |
<dd> |
| 71 |
Restrict the dig to documents that are at most <em> |
| 72 |
maxhops</em> links away from the starting document. |
| 73 |
</dd> |
| 74 |
<dt> |
| 75 |
-i |
| 76 |
</dt> |
| 77 |
<dd> |
| 78 |
Initial. Do not use any old databases. This is |
| 79 |
accomplished by first erasing the databases. |
| 80 |
</dd> |
| 81 |
<dt> |
| 82 |
-m <em>url_file</em> |
| 83 |
</dt> |
| 84 |
<dd> |
| 85 |
Minimal. Index only the URLs listed in |
| 86 |
<em>url_file</em> and no others. |
| 87 |
A file name of "-" reads from STDIN. |
| 88 |
See also the <em>start_url_file</em> argument. |
| 89 |
</dd> |
| 90 |
<dt> |
| 91 |
-s |
| 92 |
</dt> |
| 93 |
<dd> |
| 94 |
Print statistics about the dig after completion. |
| 95 |
</dd> |
| 96 |
<dt> |
| 97 |
-t |
| 98 |
</dt> |
| 99 |
<dd> |
| 100 |
Create an ASCII version of the document database. This |
| 101 |
database is easy to parse with other programs so that |
| 102 |
information can be extracted from it for purposes other |
| 103 |
than searching. One could gather some interesting |
| 104 |
statistics from this database. |
| 105 |
<p>Each line in the file starts with the document id |
| 106 |
followed by a list of |
| 107 |
<strong>\t<em>fieldname</em>:<em>value</em></strong>. |
| 108 |
The fields always appear in the order listed below: |
| 109 |
</p> |
| 110 |
<table border=0> |
| 111 |
<tr> <th>fieldname</th><th>value</th></tr> |
| 112 |
<tr> <td>u</td><td>URL</td></tr> |
| 113 |
<tr> <td>t</td><td>Title</td></tr> |
| 114 |
<tr> <td>a</td><td>State (0 = normal, 1 = not found, 2 |
| 115 |
= not indexed, 3 = obsolete)</td></tr> |
| 116 |
<tr> <td>m</td><td>Last modification time as reported |
| 117 |
by the server</td></tr> |
| 118 |
<tr> <td>s</td><td>Size in bytes</td></tr> |
| 119 |
<tr> <td>H</td><td>Excerpt</td></tr> |
| 120 |
<tr> <td>h</td><td>Meta description</td></tr> |
| 121 |
<tr> <td>l</td><td>Time of last retrieval</td></tr> |
| 122 |
<tr> <td>L</td><td>Count of the links in the document |
| 123 |
(outgoing links)</td></tr> |
| 124 |
<tr> <td>b</td><td>Count of the links to the document |
| 125 |
(incoming links or backlinks)</td></tr> |
| 126 |
<tr> <td>c</td><td>HopCount of this document</td></tr> |
| 127 |
<tr> <td>g</td><td>Signature of the document used for |
| 128 |
duplicate-detection</td></tr> |
| 129 |
<tr> <td>e</td><td>E-mail address to use for a |
| 130 |
notification message from htnotify</td></tr> |
| 131 |
<tr> <td>n</td><td>Date to send out a notification |
| 132 |
e-mail message</td></tr> |
| 133 |
<tr> <td>S</td><td>Subject for a notification e-mail |
| 134 |
message</td></tr> |
| 135 |
<tr> <td>d</td><td>The text of links pointing to this |
| 136 |
document. (e.g. <a |
| 137 |
href="docURL">description</a>)</td></tr> |
| 138 |
<tr> <td>A</td><td>Anchors in the document (i.e. <A |
| 139 |
NAME=...)</td></tr> |
| 140 |
</table> |
| 141 |
</dd> |
| 142 |
<dt> |
| 143 |
-u <em>username:password</em> |
| 144 |
</dt> |
| 145 |
<dd> |
| 146 |
Tells htdig to send the supplied username and password |
| 147 |
with each HTTP request. The credentials will be encoded |
| 148 |
using the 'Basic' authentication scheme. There <strong> |
| 149 |
HAS</strong> to be a colon (:) between the username and |
| 150 |
password. |
| 151 |
</dd> |
| 152 |
<dt> |
| 153 |
-v |
| 154 |
</dt> |
| 155 |
<dd> |
| 156 |
Verbose mode. This increases the verbosity of the |
| 157 |
program. Using more than 2 is probably only useful for |
| 158 |
debugging purposes. The default verbose mode (using |
| 159 |
only one -v) gives a nice progress report while |
| 160 |
digging. This progress report can be a bit |
| 161 |
cryptic, so here is a brief explanation. A line |
| 162 |
is shown for each URL, with 3 numbers before the |
| 163 |
URL and some symbols after the URL. The first |
| 164 |
number is the number of documents parsed so |
| 165 |
far, the second is the DocID for this document, |
| 166 |
and the third is the hop count of the document |
| 167 |
(number of hops from one of the start_url |
| 168 |
documents). After the URL, it shows a "*" for |
| 169 |
a link in the document that it already visited, |
| 170 |
a "+" for a new link it just queued, and a "-" |
| 171 |
for a link it rejected for any of a number of |
| 172 |
reasons. To find out what those reasons are, |
| 173 |
you need to run htdig with at least 3 -v options, |
| 174 |
i.e. -vvv. If there are no "*", "+" or "-" symbols |
| 175 |
after the URL, it doesn't mean the document was |
| 176 |
not parsed or was empty, but only that no links |
| 177 |
to other documents were found within it. With |
| 178 |
more verbose output, these symbols will get |
| 179 |
interspersed in several lines of debugging output. |
| 180 |
</dd> |
| 181 |
<dt> |
| 182 |
<em>start_url_file</em> |
| 183 |
</dt> |
| 184 |
<dd> |
| 185 |
A file containing a list of URLs to start indexing |
| 186 |
from, or "-" for STDIN. This will augment the default |
| 187 |
<a href="attrs.html#start_url">start_url</a> |
| 188 |
and override the file supplied to |
| 189 |
[-m <em>url_file</em>]. |
| 190 |
</dd> |
| 191 |
</dl> |
| 192 |
</dd> |
| 193 |
</dl> |
| 194 |
<dl> |
| 195 |
<dd> |
| 196 |
<h2> |
| 197 |
Files |
| 198 |
</h2> |
| 199 |
</dd> |
| 200 |
<dd> |
| 201 |
<dl> |
| 202 |
<dt> |
| 203 |
<a href="attrs.html#config_dir">CONFIG_DIR</a>/htdig.conf |
| 204 |
</dt> |
| 205 |
<dd> |
| 206 |
The default configuration file. |
| 207 |
</dd> |
| 208 |
</dl> |
| 209 |
<dl> |
| 210 |
<dt> |
| 211 |
<a href="attrs.html#database_dir">DATABASE_DIR</a>/db.docdb |
| 212 |
</dt> |
| 213 |
<dd> |
| 214 |
Stores data about each document (title, url, etc.). |
| 215 |
</dd> |
| 216 |
</dl> |
| 217 |
<dl> |
| 218 |
<dt> |
| 219 |
<a href="attrs.html#database_dir">DATABASE_DIR</a>/db.words.db, |
| 220 |
<a href="attrs.html#database_dir">DATABASE_DIR</a>/db.words.db_weakcmpr |
| 221 |
</dt> |
| 222 |
<dd> |
| 223 |
Record which documents each word occurs in. |
| 224 |
</dd> |
| 225 |
</dl> |
| 226 |
<dl> |
| 227 |
<dt> |
| 228 |
<a href="attrs.html#database_dir">DATABASE_DIR</a>/db.excerpts |
| 229 |
</dt> |
| 230 |
<dd> |
| 231 |
Stores start of each document to show context of |
| 232 |
matches. |
| 233 |
</dd> |
| 234 |
</dl> |
| 235 |
</dd> |
| 236 |
</dl> |
| 237 |
<dl> |
| 238 |
<dd> |
| 239 |
<h2> |
| 240 |
See Also |
| 241 |
</h2> |
| 242 |
</dd> |
| 243 |
<dd> |
| 244 |
<a href="htmerge.html">htmerge</a>, |
| 245 |
<a href="htsearch.html" target="_top">htsearch</a>, |
| 246 |
<a href="attrs.html">Configuration file format</a>, and |
| 247 |
<a href="http://www.robotstxt.org/wc/norobots.html"> |
| 248 |
A Standard for Robot Exclusion</a>. |
| 249 |
</dd> |
| 250 |
</dl> |
| 251 |
<hr size="4" noshade> |
| 252 |
|
| 253 |
Last modified: $Date: 2004/06/12 13:39:13 $ |
| 254 |
|
| 255 |
</body> |
| 256 |
</html> |