Solved Extracting hyperlinks from HTMLfiles without Word/Excel

To pull off hyperlinks I usually rely on VBScript using Word or Excel or even Open Office using its own Basic. However, I need to be able to extract and list the full hyperlink address and the accompanying "Display Text" of all the hyperlinks in quite a number of HTML files in a situation where recourse to the forementioned programs will not be possible. As the full link address is not visable on the page (only the Display Text) it would be a long laborious job for someone to go through each file as this would call for some knowledge of HTML given they would have to examine the source code. I doubt if going down the route of "Edit Hyperlink" via an editor would even be available to them.

To cut a long story short does anyone know of a VBScript which will do the job?. I have scoured the net and the forum and I can't see anything which addresses this. I would appreciate anyone's help.

Thank you
 

My Computer

My Computer

System One

  • Manufacturer/Model
    HP Pavilion m9515y
    CPU
    Phenom X4 9850
    Memory
    8 GB
    Graphics Card(s)
    Some Radeon Cheapie with 512 MB Ram
    Monitor(s) Displays
    CRT
    Screen Resolution
    1280x1024
    Hard Drives
    750 GB SATA 3G
    2 SIIG Superspeed docks w/WD Caviar Black Sata II or III
MilesAhead,

Many thanks for your most welcome suggestion! Although most of the html files are on the hard drive they originate from Web pages so will have to remember to keep a note of the URL for each one. This will let me pull off all the info I require using ScrapeLinks.vbs which does not work with local files only with a URL.

Thank you once again!!
 

My Computer

You're welcome. I hope it works well for you. :)
 

My Computer

System One

  • Manufacturer/Model
    HP Pavilion m9515y
    CPU
    Phenom X4 9850
    Memory
    8 GB
    Graphics Card(s)
    Some Radeon Cheapie with 512 MB Ram
    Monitor(s) Displays
    CRT
    Screen Resolution
    1280x1024
    Hard Drives
    750 GB SATA 3G
    2 SIIG Superspeed docks w/WD Caviar Black Sata II or III
Back
Top