Home > other > Python socket. The error [errno111] connection refused
Python socket. The error [errno111] connection refused
Time:10-01
I tried to use python to grab web advertising recommended, but in the Ubuntu terminal runtime appeared the following error: , I doubt is self _send_command (' GOTO % s' % url) of the problem, but I should be how to change to give it access to the specified website? Detailed code is as follows:
CodePudding user response:
S.c onnect ((' localhost ', the self. Post)) the problem of error causes connection was rejected, confirm whether the machine (localhost) under a socket server, you write 127.0.0.1, socket service write localhost at no