Link Extractor as the name suggests, scrapes all the URLs from a particular webpage. In the following code the extractor can extract relative as well as absolute URL's from a HTML webpage, and outputs them is a more readable and useful format.
Link Extractor in Python
The Code
Code:
from BeautifulSoup import BeautifulSoup import urllib2 from urlparse import urljoin # to support relative urls import sys import re def checkUrl(url) : # django regex for url validation...