LABELS

Tuesday, February 8, 2011

CODING IMPLEMENTATION OF HTML EXTRACTION

Here we are going to obtain the HTML source of URL that we are specifying .
There are 2 possibilities during URL input :

  1. valid URL
  2. Invalid URL
The possibilities of URL can be dynamically understood using HTTP STATUS CODES.
The coding of all the form for HTML extraction can be from the following :

  1. main form
  2. nsl form implementation
  3. URL error message form
 When we run the following thing , our program gets compiled and starts executing .

    After the execution starts , the following window appears .

    Then enter the URL and provide addresses for analyzing different cases :
      1)Valid URL :
             For example , if we enter URL correctly , for example "http://www.kluniversity.in" in text box as shown   
             below. 
              

    Click on "HTML source button" . Then the HTML source extractor finds the status and returns as shown below :




    And then we can obtain source code as follows in source text box as shown in below screenshot and also re-direct to particular webpage as well . So this is first step of NSL .

       





    No comments:

    Post a Comment