def ProcessRecipeLinks(self, recipeLinks, format): totalRecipes = len(recipeLinks) for i, recipeLink in enumerate(recipeLinks, start=1): self.__Log(f"🌏 {i}/{totalRecipes}: Loading recipe page...") self.driver.get(recipeLink) title = re.sub(r'^Pepperplate - ', '', self.driver.title) self.__Log(f"🕜 {i}/{totalRecipes}: Exporting {title}...") fileName = generateFileName(title) if format in 'jb': recipe = self.ScrapeRecipePage() saveRecipeAsJson(recipe, fileName) if format in 'pb': self.__GetFullScreenshot(fileName) self.__Log(f"✅ {i}/{totalRecipes}: Exported {title}")
if re.match("^store_nuttx_config", line): params = utils.processStoreNuttxConfig(line) outputFile = os.path.join(outputDirectory, params["partition_name"]) utils.copyPart(inputFile, outputFile, int(offset, 16), int(size, 16)) if re.match("^mmc", line): params = utils.processMmc(line) if params: # if params["action"] == "create": # nothing here if params["action"] == "write.boot": outputFile = utils.generateFileName(outputDirectory, params, ".img") utils.copyPart(inputFile, outputFile, int(offset, 16), int(size, 16)) print( "[i] Partition: {}\tOffset: {}\tSize {} ({}) -> {}".format( params["partition_name"], offset, size, utils.sizeStr(int(size, 16)), outputFile)) if params["action"] == "write.p": outputFile = os.path.join(outputDirectory, params["partition_name"] + ".img") utils.copyPart(inputFile, outputFile, int(offset, 16), int(size, 16)) print( "[i] Partition: {}\tOffset: {}\tSize {} ({}) -> {}".format( params["partition_name"], offset, size,