This script fetches related links from Alexa for a url or a set of urls. Alexa related urls are 'what people also visit when visiting a particular site' and in essence tells you what the surfer/public thinks is related. There are two options:
Search alexa related for 1 url
For each related link found for the starturl, its related urls are retrieved. After this it is calculated how many times a url is mentioned in all urls gathered so far; thus calculating the indegree for a url (triangulation).
Triangulate alexa related for a set of urls (one url per line)
for each url the related pages will be fetched from alexa. There will be a triangulation between those related pages, thus calculating the indegree of those related pages.
get alexa rankings for urls with an indegree >= For each url with an indegree higher than specified the alexa ranking for that url is retrieved. In the end a list is made, ranked by indegree.

Note: Sometimes a related url is actually a deep link. However, the rank always seems the same as the host.