From 2ba47f0ac8845450a8873fe7969f3ca275b98747 Mon Sep 17 00:00:00 2001 From: loki1001 Date: Mon, 26 Feb 2024 22:49:18 -0800 Subject: [PATCH] fixed naming of initial 0days parser --- MarketPlaces/Initialization/prepare_parser.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MarketPlaces/Initialization/prepare_parser.py b/MarketPlaces/Initialization/prepare_parser.py index 1901f76..a2a6279 100644 --- a/MarketPlaces/Initialization/prepare_parser.py +++ b/MarketPlaces/Initialization/prepare_parser.py @@ -25,6 +25,7 @@ from MarketPlaces.Ares.parser import * from MarketPlaces.CypherMarketplace.parser import * from MarketPlaces.WeTheNorth.parser import * from MarketPlaces.GoFish.parser import * +from MarketPlaces.ZeroDay.parser import * from MarketPlaces.Classifier.classify_product import predict @@ -160,6 +161,8 @@ def parse_listing(marketPlace, listingFile, soup, createLog, logFile): rw = wethenorth_listing_parser(soup) elif marketPlace == "GoFish": rw = gofish_listing_parser(soup) + elif marketPlace == "ZeroDay": + rw = zeroday_listing_parser() else: print("MISSING CALL TO LISTING PARSER IN PREPARE_PARSER.PY!") raise Exception @@ -214,6 +217,8 @@ def parse_description(marketPlace, descriptionFile, soup, createLog, logFile): rmm = wethenorth_description_parser(soup) elif marketPlace == "GoFish": rmm = gofish_description_parser(soup) + elif marketPlace == "ZeroDay": + rmm = zeroday_description_parser(soup) else: print("MISSING CALL TO DESCRIPTION PARSER IN PREPARE_PARSER.PY!") raise Exception