Trying to make this piece of code work : ( web scraping sample using BeautifulSoup )
import urllib2
wiki = "https://en.wikipedia.org/wiki/List_of_state_and_union_territory_capitals_in_India"
page = urllib2.urlopen(wiki)
from bs4 import BeautifulSoup
soup = BeautifulSoup(page)
I get this error :-
URLError: <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>
I guess it is to do with some firewall/security related issue, can someone help with what should be done?