|
@ -25,6 +25,7 @@ from MarketPlaces.Ares.parser import * |
|
|
from MarketPlaces.CypherMarketplace.parser import * |
|
|
from MarketPlaces.CypherMarketplace.parser import * |
|
|
from MarketPlaces.WeTheNorth.parser import * |
|
|
from MarketPlaces.WeTheNorth.parser import * |
|
|
from MarketPlaces.GoFish.parser import * |
|
|
from MarketPlaces.GoFish.parser import * |
|
|
|
|
|
from MarketPlaces.ZeroDay.parser import * |
|
|
|
|
|
|
|
|
from MarketPlaces.Classifier.classify_product import predict |
|
|
from MarketPlaces.Classifier.classify_product import predict |
|
|
|
|
|
|
|
@ -160,6 +161,8 @@ def parse_listing(marketPlace, listingFile, soup, createLog, logFile): |
|
|
rw = wethenorth_listing_parser(soup) |
|
|
rw = wethenorth_listing_parser(soup) |
|
|
elif marketPlace == "GoFish": |
|
|
elif marketPlace == "GoFish": |
|
|
rw = gofish_listing_parser(soup) |
|
|
rw = gofish_listing_parser(soup) |
|
|
|
|
|
elif marketPlace == "ZeroDay": |
|
|
|
|
|
rw = zeroday_listing_parser() |
|
|
else: |
|
|
else: |
|
|
print("MISSING CALL TO LISTING PARSER IN PREPARE_PARSER.PY!") |
|
|
print("MISSING CALL TO LISTING PARSER IN PREPARE_PARSER.PY!") |
|
|
raise Exception |
|
|
raise Exception |
|
@ -214,6 +217,8 @@ def parse_description(marketPlace, descriptionFile, soup, createLog, logFile): |
|
|
rmm = wethenorth_description_parser(soup) |
|
|
rmm = wethenorth_description_parser(soup) |
|
|
elif marketPlace == "GoFish": |
|
|
elif marketPlace == "GoFish": |
|
|
rmm = gofish_description_parser(soup) |
|
|
rmm = gofish_description_parser(soup) |
|
|
|
|
|
elif marketPlace == "ZeroDay": |
|
|
|
|
|
rmm = zeroday_description_parser(soup) |
|
|
else: |
|
|
else: |
|
|
print("MISSING CALL TO DESCRIPTION PARSER IN PREPARE_PARSER.PY!") |
|
|
print("MISSING CALL TO DESCRIPTION PARSER IN PREPARE_PARSER.PY!") |
|
|
raise Exception |
|
|
raise Exception |
|
|