Exemplo n.º 1
0
def get_website_links(url, html_doc=None):
    from website_links import get_links

    if not html_doc:
        html_doc = get_website(url)

    return get_links(html_doc)
Exemplo n.º 2
0
def get_website_links(url, html_doc=None):
    from website_links import get_links

    if not html_doc:
        html_doc = get_website(url)

    return get_links(html_doc)
Exemplo n.º 3
0
def get_website_links(url, html_doc=None):
    """
    Scrape links from website based on regex defined in website_links module
    :param url: website URL 
    :param html_doc: specific HTML code
    :return: list of all found links that matches the regex patern
    """

    from website_links import get_links

    if not html_doc:
        html_doc = get_website(url)

    return get_links(html_doc)