|
@ -23,6 +23,7 @@ from MarketPlaces.Nexus.parser import * |
|
|
from MarketPlaces.MikesGrandStore.parser import * |
|
|
from MarketPlaces.MikesGrandStore.parser import * |
|
|
from MarketPlaces.DarkBazar.parser import * |
|
|
from MarketPlaces.DarkBazar.parser import * |
|
|
from MarketPlaces.PabloEscobarMarket.parser import * |
|
|
from MarketPlaces.PabloEscobarMarket.parser import * |
|
|
|
|
|
from MarketPlaces.AnonMarket.parser import * |
|
|
|
|
|
|
|
|
from MarketPlaces.Classifier.classify_product import predict |
|
|
from MarketPlaces.Classifier.classify_product import predict |
|
|
|
|
|
|
|
@ -158,6 +159,8 @@ def parse_listing(marketPlace, listingFile, soup, createLog, logFile): |
|
|
rw = darkbazar_listing_parser(soup) |
|
|
rw = darkbazar_listing_parser(soup) |
|
|
elif marketPlace == "PabloEscobarMarket": |
|
|
elif marketPlace == "PabloEscobarMarket": |
|
|
rw = pabloescobarmarket_listing_parser(soup) |
|
|
rw = pabloescobarmarket_listing_parser(soup) |
|
|
|
|
|
elif marketPlace == "AnonMarket": |
|
|
|
|
|
rw = AnonMarket_listing_parser(soup) |
|
|
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 |
|
@ -213,6 +216,8 @@ def parse_description(marketPlace, descriptionFile, soup, createLog, logFile): |
|
|
rmm = darkbazar_description_parser(soup) |
|
|
rmm = darkbazar_description_parser(soup) |
|
|
elif marketPlace == "PabloEscobarMarket": |
|
|
elif marketPlace == "PabloEscobarMarket": |
|
|
rmm = pabloescobarmarket_description_parser(soup) |
|
|
rmm = pabloescobarmarket_description_parser(soup) |
|
|
|
|
|
elif marketPlace == "AnonMarket": |
|
|
|
|
|
rmm = AnonMarket_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 |
|
|