Exemplo n.º 1
0
		logging.info('using house spider')
		for city in cities:
			house(dispatcher, city)
	if options.deal_spider:
		logging.info('using deal spider')
		for city in cities:
			deal(dispatcher, city)
	if options.new_community:
		logging.info('using new_community spider')
		for city in cities:
			new_community(dispatcher, city)
	if options.analyze_deal:
		logging.info('using analyze deal')
		analyze_deal()
	if options.post_handle:
		logging.info('using post_handle ')
		post_handle()
	if options.book:
		logging.info('using book')
		book(dispatcher)
	if options.test:
		logging.info('using test')
		test(dispatcher)

	if options.music:
		import os
		os.system('play ' + options.music)

	dispatcher.destroy()