Q:

Can someone help me to scrap html using Beautifulsoup?

I have downloaded Beautifulsoup and want to import it in my python program. I have typed my python program as below:
import urllib
from BeautifulSoup import *
url = raw_input('Enter - ')
html = urllib.urlopen(url).read()
soup = BeautifulSoup(html)
tags = soup('a')
for tag in tags:
    print 'TAG:',tag
    print 'URL:',tag.get('href', None)
    print 'Contents:',tag.contents[0]
    print 'Attrs:',tag.attrs

Now i have saved it in a different folder.
When i try running the program, i get the following error.
 
So, what could be the reason for this and how can I make it work?
Thanks in advance !
I'm using Python 2.7.13 and will import work in it?
i tried importing bs4 and it gave import is not recognized as an internal or external command

A:

Seems a problem with the pythonpath.
Check you had made the correct setup for this library: https://www.crummy.com/software/BeautifulSoup/bs4/doc/#installing-beautiful-soup

