?
Solved

Extracting URL and Image links from html file

Posted on 2003-03-31
8
Medium Priority
?
407 Views
Last Modified: 2010-05-03
how to Extract URL and image links from html file

elzohry
0
Comment
Question by:elzohry
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 4

Expert Comment

by:iozturk
ID: 8237773

Images starts with the tag "<img " and it has a souce property like src="/images/yourimage.jpg">
Search for them line by line.

Forms, scripts, anchors also have same type of properties

<form action=".....">
<a href=".....">

YOu must seacrh for them, and exract from scripts. Hard work to do:)
0
 
LVL 3

Expert Comment

by:cmgarnett
ID: 8237818
And you need to be aware that the tag could be "<IMG" or "<img" or "<ImG" so you need to be aware of capitals.
0
 
LVL 4

Expert Comment

by:iozturk
ID: 8237845

take the line in a string type parameter say dum.

dum = Ucase(dum) 'makes dum all capital

and search for "IMG", "FORM" ....
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:y2ksw
ID: 8238052
Have a look at the DHTML control which allows to automate some of these extractions.
0
 
LVL 14

Expert Comment

by:puranik_p
ID: 8238090
Try DOM.
you get a links collection,
which you can loop thru'.
0
 
LVL 3

Accepted Solution

by:
schworak earned 1000 total points
ID: 8239353
I answered something similar to this a while back. Take a look and see if this will help you out...

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20375581.html
0
 
LVL 14

Expert Comment

by:aelatik
ID: 8239863
Listening (need this function to... ),

Additional to previous posts.
Beware that webdesigners use functions to open files and URL's these days. So you must be able to extract URL's like OpenURL("www.google.com"). Another problem is that you can't use the split function which only leaves you the Instr or Mid function which you also can't use because you don't know what the length of a given link will be.

So i say, good luck :-)
Ayhan

ps. I never started on this function because it will be a hell of a job
0
 

Author Comment

by:elzohry
ID: 8241807
thanks all guys.

elzohry
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question