diff --git a/INSTALL b/INSTALL index 3ad2f1c9..8fc81be4 100644 --- a/INSTALL +++ b/INSTALL @@ -38,3 +38,9 @@ Running LinkChecker Type "linkchecker" followed by your URLs you want to check. Type "linkchecker -h" for help. + +(Fast)CGI web interface +----------------------- +The *cgi files are three CGI script which you can use to run LinkChecker +from the web. +You can use and adjust the example HTML files to run the script. diff --git a/Makefile b/Makefile index 8b1320f4..08cdf7df 100644 --- a/Makefile +++ b/Makefile @@ -60,10 +60,11 @@ version: upload: files packages scp debian/changelog shell1.sourceforge.net:/home/groups/linkchecker/htdocs/changes.txt + scp linkchecker-out.* shell1.sourceforge.net:/home/groups/linkchecker/htdocs scp VERSION shell1.sourceforge.net:/home/groups/linkchecker/htdocs/raw/ scp $(DEBPACKAGE) ../Packages.gz shell1.sourceforge.net:/home/groups/linkchecker/htdocs/debian ncftpput download.sourceforge.net /incoming $(ALLPACKAGES) - ssh -C shell1.sourceforge.net cd /home/groups/linkchecker/htdocs/raw && make + ssh -C shell1.sourceforge.net 'cd /home/groups/linkchecker/htdocs/raw && make' test: rm -f test/*.result diff --git a/README b/README index 2df151ab..09a6bf37 100644 --- a/README +++ b/README @@ -17,6 +17,7 @@ o HTTP proxy support o give username/password for HTTP and FTP authorization o robots.txt exclusion protocol support o internationalization support +o (Fast)CGI web interface Installing, Requirements, Running @@ -56,7 +57,7 @@ fintl.py from http://sourceforge.net/snippet/detail.php?type=snippet&id=100059 Note that the following packages are modified by me: httplib.py (renamed to http11lib.py and a bug fixed) -fcgi.py (implemented immediate output) +fcgi.py (implemented streamed output) sz_fcgi.py (simplified the code) DNS/Lib.py:566 fixed rdlength name error DNS/Base.py: fixed /etc/resolv.conf parser to cope with empty lines @@ -80,8 +81,8 @@ commandline options and stores them in a Config object. (2) Which leads us directly to the Config class. This class stores all options and works a little magic: it tries to find out if your platform supports threads. If so, they are enabled. If not, they are disabled. -Several functions are replaced with their non-threaded equivalents if -threading is disabled. +Several functions are replaced with their threaded equivalents if +threading is enabled. Another thing are config files. A Config object reads config file options on initialization so they get handled before any commandline options. @@ -93,7 +94,7 @@ UrlData.check() function. Derived from the base class UrlData are the different URL types: HttpUrlData for http:// links, MailtoUrlData for mailto: links and so on. -So UrlData defines the functions which are common for *all* URLs, and +UrlData defines the functions which are common for *all* URLs, and the subclasses define functions needed for their URL type. (4) Lets look at the output. Every output is defined in a Logger class. @@ -103,6 +104,7 @@ newUrl() (through UrlData.logMe()) and after all checking we call endOfOutput(). Easy. New loggers are created with the Config.newLogger(name, fileoutput) function. + Nifty features you did not expect --------------------------------- o Included brain enhancer. Just read Python code to gain intelligence. diff --git a/debian/control b/debian/control index 20249894..d49039d9 100644 --- a/debian/control +++ b/debian/control @@ -8,8 +8,7 @@ Package: linkchecker Architecture: any Depends: python-base (>= 1.5.2) Suggests: libssl09, libssl09-dev -Description: a link checker written in Python - With LinkChecker you can check your HTML documents for broken links. +Description: check/validate/test your HTML documents for broken links/URLs Features: o recursive checking o multithreaded @@ -23,3 +22,4 @@ Description: a link checker written in Python o give username/password for HTTP and FTP authorization o robots.txt exclusion protocol support o internationalization support + o (Fast)CGI web interface diff --git a/lconline/index.html b/lconline/index.html new file mode 100644 index 00000000..4f85e0ae --- /dev/null +++ b/lconline/index.html @@ -0,0 +1,12 @@ + + +LinkChecker Online + + + + + +Please use a frame capable browser. + + + diff --git a/lconline/lc_cgi.html b/lconline/lc_cgi.html new file mode 100644 index 00000000..de45508a --- /dev/null +++ b/lconline/lc_cgi.html @@ -0,0 +1,40 @@ + + +LinkChecker Online + + + + +

LinkChecker Online

+(powered by LinkChecker) +
+ +
+
+ + + + + +
+URL: + +
Recursion Level: + +Check anchors in HTML: +
+ +Log only errors: + +Check only intern links: +
+
+
+ diff --git a/lconline/leer.html b/lconline/leer.html new file mode 100644 index 00000000..00f1fe84 --- /dev/null +++ b/lconline/leer.html @@ -0,0 +1,8 @@ + + +Empty + + +No links checked, dude! +