예제 #1
0
def __get_links(url):
    links = []
    browser = None
    try:
        browser = Browser('gc')
        browser.get(url)

        links += __get_links_from_current_page(browser)
        links += __get_links_from_frames(browser)
    except:
        try:
            browser.save_screenshot()
        except:
            pass
        traceback.print_exc()
    finally:
        if browser:
            browser.quit()
    return links