There is a website which happily opens in a browser and returns a 403 HTTP error when opened in Python as follows:
from bs4 import BeautifulSoup
import urllib2
link = 'http://niezalezna.pl/'
r = urllib2.urlopen(link).read()
soup = BeautifulSoup(r, 'lxml')
print soup.prettify()
The website is a popular news service. Is it then possible to make a URL return HTTP 403 error when opened using a piece of code like above? Thanks,