Discussion:
Counting Internal and External link on a webpage
(too old to reply)
JJ
2015-06-03 11:48:58 UTC
Permalink
Please write a script to count total number of internal links and external links on the page. Internal links are those that are on same domain as the site/page, external ones have a separate domain (or hostname).
Take an example of a domain http://www.mirraw.com/.
Please help me in writing a VBScript to count total no. of internal and external links present in the above site.
It would be better if the links exported to excels sheets.
Homework?
Dave "Crash" Dummy
2015-06-03 15:06:49 UTC
Permalink
Please write a script to count total number of internal links and
external links on the page. Internal links are those that are on same
domain as the site/page, external ones have a separate domain (or
hostname).
Take an example of a domain http://www.mirraw.com/.
Please help me in writing a VBScript to count total no. of internal
and external links present in the above site.
It would be better if the links exported to excels sheets.
I think you misunderstand the purpose of this newsgroup. We are here to
exchange tips and solve specific problems in each other's scripts. We,
or at least I, do not write scripts to order for non programmers. I
suggest you explore use of the "InternetExplorer.Application" object,
specifically with regards to the getElementsByTagName("a") method.
--
Crash

How ironic that we celebrate Independence Day with Chinese fireworks.
Todd Vargo
2015-06-05 16:25:13 UTC
Permalink
Post by JJ
Please write a script to count total number of internal links and external links on the page. Internal links are those that are on same domain as the site/page, external ones have a separate domain (or hostname).
Take an example of a domain http://www.mirraw.com/.
Please help me in writing a VBScript to count total no. of internal and external links present in the above site.
It would be better if the links exported to excels sheets.
Homework?
Nailed it!

It would be better if money was offered.
--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)
Loading...