def __init__ ( self, optDict, dom, node ):
		threading.Thread.__init__(self)
		self.uptodate_FLAG = False
		
		for elem in vars(optDict):
			setattr(self, elem, getattr(optDict, elem))
			
		self.dom = dom
		self.node = node
		self.siteParser = SiteParserFactory.getInstance(self)
				
		try:
			self.siteParser.parseSite()
			# create download directory if not found
			try:
				if os.path.exists(self.downloadPath) is False:
					os.makedirs(self.downloadPath)
			except __HOLE__:
				print("""Unable to create download directory. There may be a file 
					with the same name, or you may not have permissions to write 
					there.""")
				raise

		except self.siteParser.NoUpdates:
			self.uptodate_FLAG = True
			print ("Manga ("+self.manga+") up-to-date.")
		print('\n')
dataset/ETHPy150Open jiaweihli/manga_downloader/src/parsers/thread.py/SiteParserThread.__init__