|Get best price on Samsung Galaxy Note 4, Frosted White 32GB (Verizon Wireless)|
Perl: Count Number of Links On a Page
This 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
Test Google Ads Ver. 2
Free Linux Admin Books
Free Linux Books for Programmers
Free Books for Linux on the Desktop
Free PHP Books
Free Java Books - Advanced
Free Java Books - Basic
Free Perl Books
Free Python Books
Quote of the Day (PHP)
Debugging Part 2
How to Test Google Ads
Most Popular Pages
Baby Name Generator
U.S. Name Generator
Wu Name Generator
Upload and Resize an Image (PHP)
How To Install Apache + PHP + MySQL
Intro to Web Databases (PHP, MySQL)
Least Popular Pages
iNews Applet (Java)
Site Monitor (Perl)