|
@ -29,6 +29,7 @@ from MarketPlaces.GoFish.parser import * |
|
|
from MarketPlaces.ZeroDay.parser import * |
|
|
from MarketPlaces.ZeroDay.parser import * |
|
|
from MarketPlaces.DarkMarket.parser import * |
|
|
from MarketPlaces.DarkMarket.parser import * |
|
|
from MarketPlaces.DarkDock.parser import * |
|
|
from MarketPlaces.DarkDock.parser import * |
|
|
|
|
|
from MarketPlaces.SilkRoad4.parser import * |
|
|
|
|
|
|
|
|
from MarketPlaces.Classifier.classify_product import predict |
|
|
from MarketPlaces.Classifier.classify_product import predict |
|
|
from Translator.translate import translate |
|
|
from Translator.translate import translate |
|
@ -172,7 +173,9 @@ def parse_listing(marketPlace, listingFile, soup, createLog, logFile): |
|
|
elif marketPlace == "DarkMarket": |
|
|
elif marketPlace == "DarkMarket": |
|
|
rw = darkmarket_listing_parser(soup) |
|
|
rw = darkmarket_listing_parser(soup) |
|
|
elif marketPlace == "DarkDock": |
|
|
elif marketPlace == "DarkDock": |
|
|
rw = darkdock_listing_parser(soup) |
|
|
|
|
|
|
|
|
rw = darkdock_listing_parser() |
|
|
|
|
|
elif marketPlace == "SilkRoad4": |
|
|
|
|
|
rw = silkroad4_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 |
|
@ -235,6 +238,8 @@ def parse_description(marketPlace, descriptionFile, soup, createLog, logFile): |
|
|
rmm = darkmarket_description_parser(soup) |
|
|
rmm = darkmarket_description_parser(soup) |
|
|
elif marketPlace == "DarkDock": |
|
|
elif marketPlace == "DarkDock": |
|
|
rmm = darkdock_description_parser(soup) |
|
|
rmm = darkdock_description_parser(soup) |
|
|
|
|
|
elif marketPlace == "SilkRoad4": |
|
|
|
|
|
rmm = silkroad4_description_parser() |
|
|
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 |
|
|