webapp/scrape.py
def fetch_url(url):
    """ Tries to fetch the url that user has given. 
        IF the url cannot be downloaded, alert will be shown
    """
    try:
        soup = bs(urlopen(url).read(), 'html.parser')
        return soup
    except:
        print "Couldnot download the content from the URL", url
        return ""
 Tries to fetch the url that user has given. 
        IF the url cannot be downloaded, alert will be shown
    
Tries to fetch the url that user has given.
IF the url cannot be downloaded, alert will be shown
Tries to fetch the url that user has given . IF the url cannot be downloaded alert will be shown
def fetch_url(url):
    try:
        soup = bs(urlopen(url).read(), 'html.parser')
        return soup
    except:
        print "Couldnot download the content from the URL", url
        return ""
def fetch_url ( url ) : try : soup = bs ( urlopen ( url ) . read ( ) , 'html.parser' ) return soup except : print "Couldnot download the content from the URL" , url return ""
Tries to fetch the url that user has given.
Tries to fetch the url that user has given .
""" Tries to fetch the url that user has given. 
        IF the url cannot be downloaded, alert will be shown
    """
url