Beispiel #1
0
    def __helper__(self, a_link, current_path, root_page_path):
        probe = Probe()
        probe.parse_string(current_path,
        '''
        <html><head></head>
        <body>
        <a href="%s"></a>
        </body></html>
        ''' % a_link)

        return probe.get_internal_url(root_page_path)
Beispiel #2
0
 def get_sub_url(self, base_url, url):
     probe = Probe()
     probe.open(url)
     return probe.get_internal_url(base_url)