³ò
®%#Kc           @   sÉ  d  Z  d d k Z d d k Z d d k Z e d j oŽe i Z e e ƒ d Z e d j o e d ƒ Z	 n e i d Z	 e i
 i e	 ƒ oM e i e	 ƒ Z xn e e e ƒ ƒ D]# Z e i
 i e	 e e ƒ e e <q¯ Wn4 e i
 i e	 ƒ p d Ge	 GHe i ƒ  n e	 g Z xµe D]©Z	 e i
 i e	 ƒ Z e o? e i
 i e	 ƒ d Z e i ƒ  Z e d j p
 e d j Z n e p qn e i
 i e	 ƒ Z e e	 d	 ƒ i ƒ  Z d
 d d g Z d Z e i ƒ  Z xÐe D]ÈZ  e i! e  ƒ Z" x°e" d j o¢e" e e  ƒ Z# e i! d e# ƒ Z$ e e# e$ !Z% e e# e$ !Z& e& i! d ƒ d j oLe% e d ƒ Z' e' i! d ƒ Z( e( d j o
 d Z) n e' e( Z) e' d e( !Z' e) i! d ƒ d j o
 d Z* n d Z* e i+ e' ƒ Z, y e, i- e* e) ƒ Wn d Ge% GHn– Xe, i. ƒ  Z/ e/ i0 d j oy e/ i1 i! d ƒ d j o` e/ i1 i! d ƒ oM e/ i1 i! d ƒ d j o4 e' i! d ƒ d j o e d 7Z d Ge/ i1 Ge% GHn e, i2 ƒ  nïe& i! d ƒ d j o
 d Z3 nÏe& i! d ƒ d j o
 d Z3 n¯e& i! d ƒ d j o
 d Z3 ne& i! d ƒ d j o$ e% e d ƒ Z% e& e d ƒ Z& n e% i! d ƒ Z( e( d j o e% e(  Z% e& e(  Z& n e e% ƒ d j oe% i! d  ƒ d j o e i
 i e e% ƒ Z% n+ e% d d j o e i
 i e e% ƒ Z% n e i
 i e% ƒ Z e i
 i4 e% ƒ Z4 e i
 i e% ƒ Z e i
 i e% ƒ Z e d j o d Gd! Ge% GHe d 7Z q€e4 o9 e d j o( e d j o d Gd" Ge% GHe d 7Z q|q€n e i! e  e$ ƒ Z" qçWqÏWe d j o e	 Gd Ge Gd# GHqqWn d S($   sâ  
#+
# NAME:
#	check_html
# PURPOSE:
#	Checks whether files references in an html file exist
# CALLING SEQUENCE:
#	check_html file_name
# INPUTS:
#	file_name	name of ascii file or directory name
#			If a directory is specified all files with
#			extension .htm and .html in the directory
#			are checked.
# PROCEDURE:
# 	Python script
# MODIFICATION HISTORY:
#	SEP-2002, Paul Hick (UCSD/CASS)
#	MAR-2003, Paul Hick (UCSD/CASS; pphick@ucsd.edu)
#		Add check for http:// references
#-
iÿÿÿÿNt   __main__i   s   File or directory : s   file does not exist, s   .htms   .htmlt   rs   href="s   src="s   background="i    t   "s   http://t   /s	   /cgi-bin/t   POSTt   GETs      exception oniÈ   s   Authorization Requiredt	   Forbiddent   Founds
   dx.doi.orgs      s   mailto:s   ftp:s   javascript:s   file:t   #t   .s   non-existent reference:s   bad symlink:t   problems(5   t   __doc__t   syst   ost   httplibt   __name__t   argvt   lent   nargt	   raw_inputt   filet   patht   isdirt   listdirt   filest   ranget   it   joint   existst   exitt   isfilet   okt   splitextt   extt   lowert   dirnamet   dirt   opent   readt   contentt   targetst   countt   content_lowt   targett   findt   pos_hreft   pos_begt   pos_endt   reft   ref_lowt   sitet   post   paget   cmdt   HTTPConnectiont   connt   requestt   getresponset   answert   statust   reasont   closet   dummyt   islink(    (    (    s   ./check_html.pys   <module>   s¼   $	 %		  







