Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Retrieve links from url content until defined depth organized in levels.

Keyword arguments:
target_url -- URL to analyze content and retrive links.
depth -- Depth of links to analyze.
level -- Level in which start to analyze.

src/r/i/ricardo_crawler-01.00.01/ricardo_crawler.py   ricardo_crawler(Download)
 
        links_list = http_links_collector.\
            retrieve_links(target_url, depth, level)
 
        links[target_url] = links_list

src/r/i/ricardo_crawler-01.00.01/test/controllers/TestHttpLinksCollector.py   ricardo_crawler(Download)
 
        http_links_collector = HttpLinksCollector(starting_url)        
        links_retrieved = http_links_collector.retrieve_links(target_url)
 
        self.assertTrue(not links_retrieved, \
 
        http_links_collector = HttpLinksCollector(starting_url)        
        links_retrieved = http_links_collector.retrieve_links(target_url)
 
        self.assertTrue(not links_retrieved, \