$ python3
get.pyhttp://boards.4chan.org/diy/Traceback (most recent call last):
File "C:\developer\Python36\lib\site-packages\urllib3\
connectionpool.py", line 600, in urlopen
chunked=chunked)
File "C:\developer\Python36\lib\site-packages\urllib3\
connectionpool.py", line 384, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "C:\developer\Python36\lib\site-packages\urllib3\
connectionpool.py", line 380, in _make_request
httplib_response = conn.getresponse()
File "C:\developer\Python36\lib\http\
client.py", line 1331, in getresponse
response.begin()
File "C:\developer\Python36\lib\http\
client.py", line 297, in begin
version, status, reason = self._read_status()
File "C:\developer\Python36\lib\http\
client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "C:\developer\Python36\lib\
socket.py", line 586, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [WinError 10054] Զ▒▒▒▒▒▒ǿ▒ȹر▒▒▒һ▒▒▒▒▒е▒▒▒▒ӡ▒
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\developer\Python36\lib\site-packages\requests\
adapters.py", line 445, in send
timeout=timeout
File "C:\developer\Python36\lib\site-packages\urllib3\
connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "C:\developer\Python36\lib\site-packages\urllib3\util\
retry.py", line 367, in increment
raise six.reraise(type(error), error, _stacktrace)
File "C:\developer\Python36\lib\site-packages\urllib3\packages\
six.py", line 685, in reraise
raise value.with_traceback(tb)
File "C:\developer\Python36\lib\site-packages\urllib3\
connectionpool.py", line 600, in urlopen
chunked=chunked)
File "C:\developer\Python36\lib\site-packages\urllib3\
connectionpool.py", line 384, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "C:\developer\Python36\lib\site-packages\urllib3\
connectionpool.py", line 380, in _make_request
httplib_response = conn.getresponse()
File "C:\developer\Python36\lib\http\
client.py", line 1331, in getresponse
response.begin()
File "C:\developer\Python36\lib\http\
client.py", line 297, in begin
version, status, reason = self._read_status()
File "C:\developer\Python36\lib\http\
client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "C:\developer\Python36\lib\
socket.py", line 586, in readinto
return self._sock.recv_into(b)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(10054, 'Զ▒▒▒▒▒▒ǿ▒ȹر▒▒▒һ▒▒▒▒▒е▒▒▒▒ӡ▒', None, 10054, None))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "
get.py", line 44, in <module>
get_pic("diy")
File "
get.py", line 31, in get_pic
get_pics_from_url(channel_url)
File "
get.py", line 16, in get_pics_from_url
r = requests.get(url)
File "C:\developer\Python36\lib\site-packages\requests\
api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "C:\developer\Python36\lib\site-packages\requests\
api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "C:\developer\Python36\lib\site-packages\requests\
sessions.py", line 512, in request
resp = self.send(prep, **send_kwargs)
File "C:\developer\Python36\lib\site-packages\requests\
sessions.py", line 622, in send
r = adapter.send(request, **kwargs)
File "C:\developer\Python36\lib\site-packages\requests\
adapters.py", line 495, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'Զ▒▒▒▒▒▒ǿ▒ȹر▒▒▒һ▒▒▒▒▒е▒▒▒▒ӡ▒', None, 10054, None))