• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 419
  • Last Modified:

Extracting URL and Image links from html file

how to Extract URL and image links from html file

elzohry
0
elzohry
Asked:
elzohry
1 Solution
 
iozturkCommented:

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
 
cmgarnettCommented:
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
 
iozturkCommented:

take the line in a string type parameter say dum.

dum = Ucase(dum) 'makes dum all capital

and search for "IMG", "FORM" ....
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
y2kswCommented:
Have a look at the DHTML control which allows to automate some of these extractions.
0
 
puranik_pCommented:
Try DOM.
you get a links collection,
which you can loop thru'.
0
 
schworakCommented:
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
 
aelatikCommented:
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
 
elzohryAuthor Commented:
thanks all guys.

elzohry
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now