Python Link Puller

_By_hacker_

New Member
So I have successfully used this python script:\[code\]import httplib2from BeautifulSoup import BeautifulSoup, SoupStrainerhttp = httplib2.Http()status, response = http.request('https://conceled:[email protected]:8443/servlet/traveler')for link in BeautifulSoup(response, parseOnlyThese=SoupStrainer('a')): if link.has_key('href'): print link['href']\[/code\]To pull Links off website. It works for almost any other website, but when trying the above (the one i need to work, I get a slew of errors:)\[code\]Traceback (most recent call last): File "C:\Users\joe\Desktop\PHA\AndroidPhones\androidphonescript2.py", line 5, in <module> status, response = http.request('https://[email protected]:8443/servlet/traveler') File "C:\Python27\lib\httplib2.py", line 608, in request (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cacheFullPath) File "C:\Python27\lib\httplib2.py", line 449, in _request (response, content) = self._conn_request(conn, request_uri, method, body, headers) File "C:\Python27\lib\httplib2.py", line 427, in _conn_request conn.connect() File "C:\Python27\lib\httplib.py", line 1157, in connect self.timeout, self.source_address) File "C:\Python27\lib\socket.py", line 553, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM):gaierror: [Errno 11003] getaddrinfo failed\[/code\]
 
Back
Top