コード例 #1
0
ファイル: a_rules_example.py プロジェクト: amogrid/redcurrant
def chunk_rules(chunk):
	"""Rules for datas found by chunk-crawler"""
	if mod_general.do_it_between(0, 0):
		if chunk.is_older_than(chunk.mtime, 3):
			chunk.verify_chunk_size()
			print chunk.content.creation_time
コード例 #2
0
ファイル: a_rules_example.py プロジェクト: amogrid/redcurrant
def container_rules(container):
	"""Rules for datas found by meta2-crawler"""
	if mod_general.do_it_between(0, 0):
		container.sqlite_pragma_check()
	pass