wotthe2004
Programmer
How do you print the filename followed by a list of each unique link on that web page and the number of times it occurs in the file?
I need links with extension .html to be printed out, .jpg to be printed out and other file extensions in different lists.
I have tried using 3 arrays, one for each of the file extensions and using a counter so that i find out how many of each link there is. I am having a bit of trouble doing it this way as it is counting how many .htm links there are rather than how many of time a certain web page link occurs, for example, if this link appeared 5 times on the page, i want it to print the link then 5 afterwards to show it appears 5 times.
Can anyone help.
Thanks.
I need links with extension .html to be printed out, .jpg to be printed out and other file extensions in different lists.
I have tried using 3 arrays, one for each of the file extensions and using a counter so that i find out how many of each link there is. I am having a bit of trouble doing it this way as it is counting how many .htm links there are rather than how many of time a certain web page link occurs, for example, if this link appeared 5 times on the page, i want it to print the link then 5 afterwards to show it appears 5 times.
Can anyone help.
Thanks.