4b01747aa5
The crawl utility starts a depth-first traversal of the web at the specified URLs. It stores all JPEG images that match the configured constraints. Crawl is fairly fast and allows for graceful termination. After terminating crawl, it is possible to restart it at exactly the same spot where it was terminated. Crawl keeps a persistent database that allows multiple crawls without revisiting sites. The main reason for writing crawl was the lack of simple open source web crawlers. Crawl is only a few thousand lines of code and fairly easy to debug and customize. Features + Saves encountered JPEG images + Image selection based on regular expressions and size contraints + Resume previous crawl after graceful termination + Persistent database of visited URLs + Very small and efficient code + Supports robots.txt
29 lines
738 B
Plaintext
29 lines
738 B
Plaintext
--- Makefile.in.orig Sun Jul 22 17:24:41 2001
|
|
+++ Makefile.in Sun Jul 22 17:26:44 2001
|
|
@@ -3,12 +3,13 @@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
-install_prefix =
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
bindir = @bindir@
|
|
mandir = @mandir@
|
|
|
|
+DESTDIR =
|
|
+
|
|
CC = @CC@
|
|
CFLAGS = -Wall @CFLAGS@ @USRINCLUDE@ -I$(srcdir) \
|
|
-I$(srcdir)/missing @DBINC@ @EVENTINC@
|
|
@@ -29,8 +30,8 @@ crawl: $(OBJS)
|
|
$(CC) $(CFLAGS) $(INCS) -o $@ $(OBJS) $(LIBS)
|
|
|
|
install: all
|
|
- $(INSTALL_PROG) -m 755 crawl $(install_prefix)$(bindir)
|
|
- $(INSTALL_DATA) crawl.1 $(install_prefix)$(mandir)/man1
|
|
+ $(INSTALL_PROG) -m 755 crawl $(DESTDIR)$(bindir)
|
|
+ $(INSTALL_DATA) crawl.1 $(DESTDIR)$(mandir)/man1
|
|
|
|
clean:
|
|
rm -f crawl *~ *.core *.db $(OBJS)
|