get all link site in source html (python)
Question: I want get all link in one web page ,this function only one link but need get
all link ! of course i know need The One Ring true but i don't know use

i need get all link

    
    
    def get_next_target(page):
    start_link = page.find('<a href=')
    start_quote = page.find('"', start_link)
    end_quote = page.find('"', start_quote + 1)
    url = page[start_quote + 1:end_quote]
    return url, end_quote
    


Answer: This is where a HTML parser comes in handy. I recommend
[`BeautifulSoup`](http://www.crummy.com/software/BeautifulSoup/):

    
    
    from bs4 import BeautifulSoup as BS
    def get_next_target(page)
        soup = BS(page)
        return soup.find_all('a', href=True)
    

