Get best price on Prepaid Cheapest Smartphone | ||||||||||||
|
||||||||||||
|
Perl: Count Number of Links On a PageThis perl script counts the number of links on a page. For a list of webpages, it also calculates the average number of links per page. It is rather simple. It fetches a web page and parses it for links, counting them as it goes. I wrote it for my own amusement. When I was first creating web pages, you kept the pages simple. The rule-of-thumb was to keep the choices a user had to make under seven. Put simply, we tried to limit the number of links on a page, not neccesarily to just seven, because you would have navigation links. However, we attempted to keep it simple to navigate and actually find something on the page. The major web sites have gotten pretty crazy with how much crap they have crammed onto their pages. So, I wrote a script to count how many links the major sites have on their homepages. I provides interesting comparisons. Results were generated on Dec-06,1998
I wrote the script using Perl for Win32 and the Win32::Internet module, which is a module which allows you to fetch URLs using HTTP, FTP and GOPHER. Download and info on the Win32::Internet module View linkCount.pl Script Source Related Links:
|
privacy policy || © 1997-2016. astonishinc.com All Rights Reserved. |