'If I am a redirect, return the absolute URL to which I redirect.
Otherwise, return None.'

def get_redirect_url(self):

    if (REDIRECT_HTML in self.html):
        anchors = PyQuery(self.html)('a[href].redirect')
        if anchors:
            url = anchors[0].get('href')
            if (len(url) > 1):
                if url.startswith(settings.SITE_URL):
                    return url
                elif ((url[0] == '/') and (url[1] != '/')):
                    return url
            elif ((len(url) == 1) and (url[0] == '/')):
                return url
