Forums

problem with scraping

Hello,

I am using this web first time, but my scraper code doesnt work here:

19:03 ~ $ cd scraper1/

19:03 ~/scraper1 $ python scrapper.py Traceback (most recent call last): File "scrapper.py", line 43, in <module> response = opener.open(baseurl) # open the front page of the website to set and save initial cookies File "/usr/lib/python2.7/urllib2.py", line 404, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 422, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open return self.do_open(httplib.HTTPSConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open raise URLError(err) urllib2.URLError: <urlopen error Tunnel connection failed: 403 Forbidden>

What can be the problem? Thanks

From the docs