Skip to content

Instantly share code, notes, and snippets.

@Chairo
Chairo / requests.py
Created March 27, 2012 12:56
requests mutil-threading
# -*- coding:utf-8 -*-
import requests
from time import sleep
from threading import Thread
UPDATE_INTERVAL = 0.01
class URLThread(Thread):
def __init__(self, url, timeout=10, allow_redirects=True):
super(URLThread, self).__init__()