def __init__(self, path, throttle_bounds, headers = None):
		"""
		path -- The path to the resource cache. If the path exists it will be
		opened. This way the cache can be persistent across sessions.

		throttle_bounds -- A sequence of two numbers. The throttling interval
		(in seconds) will be a random value uniformly distributed between those
		two numbers. A new throttling interval is chosen before each network
		request.

		headers -- A dictionary of headers to be used for network HTTP
		requests. If no User-Agent header is passed via this argument then
		network request will send a Firefox 32.0 User-Agent.
		"""
		self.path = path
		self.throttle_bounds = throttle_bounds
		self.headers = headers
		self.last_download = None
		self._set_next_throttling_period()
		with self._get_conn() as conn:
			conn.execute('''
				create table if not exists
				cache
				(
					url text primary key,
					date text not null,
					content blob not null
				)
			'''
			)
def __init__ ( self , path , throttle_bounds , headers = None ) : self . path = path self . throttle_bounds = throttle_bounds self . headers = headers self . last_download = None self . _set_next_throttling_period ( ) with self . _get_conn ( ) as conn : conn . execute ( '''
				create table if not exists
				cache
				(
					url text primary key,
					date text not null,
					content blob not null
				)
			''' )
path -- The path to the resource cache. If the path exists it will be
		opened. This way the cache can be persistent across sessions.

		throttle_bounds -- A sequence of two numbers. The throttling interval
		(in seconds) will be a random value uniformly distributed between those
		two numbers. A new throttling interval is chosen before each network
		request.

		headers -- A dictionary of headers to be used for network HTTP
		requests. If no User-Agent header is passed via this argument then
		network request will send a Firefox 32.0 User-Agent.