2011-08-21, 11:51
DragonWin Wrote:Is there a way to set the timeout of the net.http_HEAD function ? If I'm to try and scrape 10 proxy lists to find a few that are decent it could takes ages before those that don't work time out.looked at this and i think you may as well handle this in your code rather than in t0mm0.common.net
to set the timeout you just need to do
Code:
import socket
socket.setdefaulttimeout(SECS)
then be ready to catch a socket.timeout exception which will mean a timeout has occurred.
t0mm0