
    Mg                      @    S SK J r   S SKrS SKJr  \ " S5      S 5       rg)    )pluginN)Forezwebsite statusc                    Sn [        U R                  U5      5      nUR                  S5      (       a  OUR                  S5      (       a  OSU-   n 0 nSUS'   [        R                  R                  X4S9n[        R                  R                  U5      n[        UR                  5       5      nU R                  SU-   S-   U-   S	-   [        R                  5        g ! [         ar  nU R                  [        U5      [        R                  5        U R                  S
5        U R                  S5      n	U	R                  5       n	U	S:X  a   S nAGMJ   S nAg S nAff = f)NzPlease enter a website URL: zhttps://zhttp://zMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36             (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36z
User-Agent)headerszThe website z has returned a z codez&Make sure you are entering a valid URLz Do you want to try again (y/n): y)strinput
startswithurllibrequestRequesturlopengetcodesayr   BLUE	ExceptionREDlower)
jarvissprompturl_requestr   reqpagecodee	try_agains
             D/Users/admin/workspace/ai/Jarvis/jarviscli/plugins/website_status.pycheck_website_statusr      s7   +F
 &,,v./!!*--##I..${2K	 G&DGL!..(((FC>>))#.Dt||~&DJJ~3)*,013:;<@IIG 		JJs1vtxx(JJ?@%GHI!)IC		s   BC 
E%A!EE)r   urllib.requestr   coloramar   r        r   <module>r$      s(       ! !r#   