Need assistance trying to web scrape : <p>Very very new to programming - I am trying to scrape a website in order to find get a quick view of some information on site.</p>

<p>Found this on a tutorial on webscraping linked here: <a href="https://www.pythonforbeginners.com/python-on-the-web/web-scraping-with-beautifulsoup" rel="nofollow noreferrer">https://www.pythonforbeginners.com/python-on-the-web/web-scraping-with-beautifulsoup</a></p>

<pre><code>    from bs4 import BeautifulSoup
    import requests 
    url = raw_input("enter a website to extract URL's from")

    r = requests.get("http://www.pythonforbeginners.com")

    data = r.text

    soup = BeautifulSoup(data)

    for link in soup.find_all('a'):
        print(link.get(href))
</code></pre>

<p>Error message states "href is not defined". I don't know what else to try... Any help would be appreciated.</p>
