This seems like a PA problem (i think) If it means anything, i seem to consistently get blocked while running my script through bash, but ipython still consistently works. If it means anything, I'm running this in a py3 virtual env
File "/home/joepeer00000/joepeer.py", line 20, in get_most_advance
soup = bs(urlopen(url), "html.parser")
File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
ERROR:root:None
b'<HTML><HEAD>\n<TITLE>Access Denied</TITLE>\n</HEAD><BODY>\n<H1>Access Denied</H1>\n \nYou don\'t have permission to access "http://www.nasdaq.c
om/extended-trading/premarket-mostactive.aspx" on this server.<P>\nReference #18.96111cb8.1512174140.504052b\n</BODY>\n</HTML
>\n'