Example Code

Parse Web Page Title using LabVIEW

Code and Documents

Attachment

Overview
This example VI read the HTML code from a webpage and parse its title.

 

Description
You can use This VI to obtain webpage title from the address an to see the HTML code. The HTML code is read using Datasocket API and after that it is converted to string. Then the VI searches the web page title using string function.


Requirements

  • LabVIEW 2012 (or compatible)

 
Steps to Implement or Execute Code

  1. Open the VI
  2. Insert the website address
  3. Run the VI
  4. Title shows the webpage title
  5. A boolean indicator shows if an HTML timeout is
    occured

 

Additional Information or References
VI Block Diagram

 Parse Web Title LV2012 NI verified.png

 

 

*This document has been updated to meet the current required format for the NI Code Exchange.**

John Passiak

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.