{'duspapply@mit.edu', 'duspinfo@mit.edu'}
---------------------------------------------------------------------------
ConnectionResetError Traceback (most recent call last)
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, **response_kw)
593 body=body, headers=headers,
--> 594 chunked=chunked)
595
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
390 # otherwise it looks like a programming error was the cause.
--> 391 six.raise_from(e, None)
392 except (SocketTimeout, BaseSSLError, SocketError) as e:
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/packages/urllib3/packages/six.py in raise_from(value, from_value)
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
386 try:
--> 387 httplib_response = conn.getresponse()
388 except Exception as e:
/Users/zachpostone/anaconda/lib/python3.5/http/client.py in getresponse(self)
1173 try:
-> 1174 response.begin()
1175 except ConnectionError:
/Users/zachpostone/anaconda/lib/python3.5/http/client.py in begin(self)
281 while True:
--> 282 version, status, reason = self._read_status()
283 if status != CONTINUE:
/Users/zachpostone/anaconda/lib/python3.5/http/client.py in _read_status(self)
242 def _read_status(self):
--> 243 line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
244 if len(line) > _MAXLINE:
/Users/zachpostone/anaconda/lib/python3.5/socket.py in readinto(self, b)
574 try:
--> 575 return self._sock.recv_into(b)
576 except timeout:
ConnectionResetError: [Errno 54] Connection reset by peer
During handling of the above exception, another exception occurred:
ProtocolError Traceback (most recent call last)
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
422 retries=self.max_retries,
--> 423 timeout=timeout
424 )
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, **response_kw)
642 retries = retries.increment(method, url, error=e, _pool=self,
--> 643 _stacktrace=sys.exc_info()[2])
644 retries.sleep()
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
333 if read is False:
--> 334 raise six.reraise(type(error), error, _stacktrace)
335 elif read is not None:
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/packages/urllib3/packages/six.py in reraise(tp, value, tb)
684 if value.__traceback__ is not tb:
--> 685 raise value.with_traceback(tb)
686 raise value
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, **response_kw)
593 body=body, headers=headers,
--> 594 chunked=chunked)
595
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
390 # otherwise it looks like a programming error was the cause.
--> 391 six.raise_from(e, None)
392 except (SocketTimeout, BaseSSLError, SocketError) as e:
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/packages/urllib3/packages/six.py in raise_from(value, from_value)
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
386 try:
--> 387 httplib_response = conn.getresponse()
388 except Exception as e:
/Users/zachpostone/anaconda/lib/python3.5/http/client.py in getresponse(self)
1173 try:
-> 1174 response.begin()
1175 except ConnectionError:
/Users/zachpostone/anaconda/lib/python3.5/http/client.py in begin(self)
281 while True:
--> 282 version, status, reason = self._read_status()
283 if status != CONTINUE:
/Users/zachpostone/anaconda/lib/python3.5/http/client.py in _read_status(self)
242 def _read_status(self):
--> 243 line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
244 if len(line) > _MAXLINE:
/Users/zachpostone/anaconda/lib/python3.5/socket.py in readinto(self, b)
574 try:
--> 575 return self._sock.recv_into(b)
576 except timeout:
ProtocolError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-8-73005a3c3282> in <module>()
22 for index, row in df_test.iterrows():
23 x = row['URLS']
---> 24 EmailSearch2 = getEmail(x)
25 emails = EmailSearch2[0]
26 soup = EmailSearch2[1]
<ipython-input-8-73005a3c3282> in getEmail(x)
11 df_test
12 def getEmail(x):
---> 13 page = requests.get(str(x))
14 soup = BeautifulSoup(page.content, 'html.parser')
15 emails = set(re.findall(r"[a-z0-9\.\-+_]+@[a-z0-9\.\-+_]+\.[a-z]+", soup.text, re.I))
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/api.py in get(url, params, **kwargs)
68
69 kwargs.setdefault('allow_redirects', True)
---> 70 return request('get', url, params=params, **kwargs)
71
72
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/api.py in request(method, url, **kwargs)
54 # cases, and look like a memory leak in others.
55 with sessions.Session() as session:
---> 56 return session.request(method=method, url=url, **kwargs)
57
58
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
486 }
487 send_kwargs.update(settings)
--> 488 resp = self.send(prep, **send_kwargs)
489
490 return resp
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/sessions.py in send(self, request, **kwargs)
607
608 # Send the request
--> 609 r = adapter.send(request, **kwargs)
610
611 # Total elapsed time of the request (approximately)
/Users/zachpostone/anaconda/lib/python3.5/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
471
472 except (ProtocolError, socket.error) as err:
--> 473 raise ConnectionError(err, request=request)
474
475 except MaxRetryError as e:
ConnectionError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))