---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-58-b8b30db6642f> in <module>()
----> 1 for brea in breaking:
2 print brea
/usr/local/lib/python2.7/dist-packages/tpb/tpb.pyc in items(self)
138 self.next()
139 else:
--> 140 for item in super(Paginated, self).items():
141 yield item
142
/usr/local/lib/python2.7/dist-packages/tpb/tpb.pyc in items(self)
53 torrent on page.
54 """
---> 55 request = urlopen(str(self.url))
56 content = request.read()
57 page = BeautifulSoup(content, "lxml")
/usr/lib/python2.7/urllib2.pyc in urlopen(url, data, timeout)
125 if _opener is None:
126 _opener = build_opener()
--> 127 return _opener.open(url, data, timeout)
128
129 def install_opener(opener):
/usr/lib/python2.7/urllib2.pyc in open(self, fullurl, data, timeout)
402 req = meth(req)
403
--> 404 response = self._open(req, data)
405
406 # post-process response
/usr/lib/python2.7/urllib2.pyc in _open(self, req, data)
420 protocol = req.get_type()
421 result = self._call_chain(self.handle_open, protocol, protocol +
--> 422 '_open', req)
423 if result:
424 return result
/usr/lib/python2.7/urllib2.pyc in _call_chain(self, chain, kind, meth_name, *args)
380 func = getattr(handler, meth_name)
381
--> 382 result = func(*args)
383 if result is not None:
384 return result
/usr/lib/python2.7/urllib2.pyc in https_open(self, req)
1220
1221 def https_open(self, req):
-> 1222 return self.do_open(httplib.HTTPSConnection, req)
1223
1224 https_request = AbstractHTTPHandler.do_request_
/usr/lib/python2.7/urllib2.pyc in do_open(self, http_class, req)
1179
1180 try:
-> 1181 h.request(req.get_method(), req.get_selector(), req.data, headers)
1182 except socket.error, err: # XXX what error?
1183 h.close()
/usr/lib/python2.7/httplib.pyc in request(self, method, url, body, headers)
971 def request(self, method, url, body=None, headers={}):
972 """Send a complete request to the server."""
--> 973 self._send_request(method, url, body, headers)
974
975 def _set_content_length(self, body):
/usr/lib/python2.7/httplib.pyc in _send_request(self, method, url, body, headers)
1005 for hdr, value in headers.iteritems():
1006 self.putheader(hdr, value)
-> 1007 self.endheaders(body)
1008
1009 def getresponse(self, buffering=False):
/usr/lib/python2.7/httplib.pyc in endheaders(self, message_body)
967 else:
968 raise CannotSendHeader()
--> 969 self._send_output(message_body)
970
971 def request(self, method, url, body=None, headers={}):
/usr/lib/python2.7/httplib.pyc in _send_output(self, message_body)
827 msg += message_body
828 message_body = None
--> 829 self.send(msg)
830 if message_body is not None:
831 #message_body was not a string (i.e. it is a file) and
/usr/lib/python2.7/httplib.pyc in send(self, data)
789 if self.sock is None:
790 if self.auto_open:
--> 791 self.connect()
792 else:
793 raise NotConnected()
/usr/lib/python2.7/httplib.pyc in connect(self)
1170
1171 sock = socket.create_connection((self.host, self.port),
-> 1172 self.timeout, self.source_address)
1173 if self._tunnel_host:
1174 self.sock = sock
/usr/lib/python2.7/socket.pyc in create_connection(address, timeout, source_address)
560 if source_address:
561 sock.bind(source_address)
--> 562 sock.connect(sa)
563 return sock
564
/usr/lib/python2.7/socket.pyc in meth(name, self, *args)
222
223 def meth(name,self,*args):
--> 224 return getattr(self._sock,name)(*args)
225
226 for _m in _socketmethods:
KeyboardInterrupt: