|
|
@ -27,6 +27,7 @@ from MarketPlaces.WeTheNorth.parser import * |
|
|
|
from MarketPlaces.Torzon.parser import * |
|
|
|
from MarketPlaces.GoFish.parser import * |
|
|
|
from MarketPlaces.ZeroDay.parser import * |
|
|
|
from MarketPlaces.DarkMarket.parser import * |
|
|
|
|
|
|
|
from MarketPlaces.Classifier.classify_product import predict |
|
|
|
from Translator.translate import translate |
|
|
@ -158,7 +159,7 @@ def parse_listing(marketPlace, listingFile, soup, createLog, logFile): |
|
|
|
elif marketPlace == "CypherMarketplace": |
|
|
|
rw = cyphermarketplace_listing_parser(soup) |
|
|
|
elif marketPlace == "TheDarkMarket": |
|
|
|
rw = darkmarket_listing_parser(soup) |
|
|
|
rw = thedarkmarket_listing_parser(soup) |
|
|
|
elif marketPlace == "WeTheNorth": |
|
|
|
rw = wethenorth_listing_parser(soup) |
|
|
|
elif marketPlace == "GoFish": |
|
|
@ -167,6 +168,8 @@ def parse_listing(marketPlace, listingFile, soup, createLog, logFile): |
|
|
|
rw = zeroday_listing_parser(soup) |
|
|
|
elif marketPlace == "Torzon": |
|
|
|
rw = torzon_listing_parser(soup) |
|
|
|
elif marketPlace == "DarkMarket": |
|
|
|
rw = darkmarket_listing_parser(soup) |
|
|
|
else: |
|
|
|
print("MISSING CALL TO LISTING PARSER IN PREPARE_PARSER.PY!") |
|
|
|
raise Exception |
|
|
@ -216,7 +219,7 @@ def parse_description(marketPlace, descriptionFile, soup, createLog, logFile): |
|
|
|
elif marketPlace == "CypherMarketplace": |
|
|
|
rmm = cyphermarketplace_description_parser(soup) |
|
|
|
elif marketPlace == "TheDarkMarket": |
|
|
|
rmm = darkmarket_description_parser(soup) |
|
|
|
rmm = thedarkmarket_description_parser(soup) |
|
|
|
elif marketPlace == "WeTheNorth": |
|
|
|
rmm = wethenorth_description_parser(soup) |
|
|
|
elif marketPlace == "GoFish": |
|
|
@ -225,6 +228,8 @@ def parse_description(marketPlace, descriptionFile, soup, createLog, logFile): |
|
|
|
rmm = zeroday_description_parser(soup) |
|
|
|
elif marketPlace == "Torzon": |
|
|
|
rmm = torzon_description_parser(soup) |
|
|
|
elif marketPlace == "DarkMarket": |
|
|
|
rmm = darkmarket_description_parser(soup) |
|
|
|
else: |
|
|
|
print("MISSING CALL TO DESCRIPTION PARSER IN PREPARE_PARSER.PY!") |
|
|
|
raise Exception |
|
|
@ -250,6 +255,10 @@ def get_source_language(marketPlace): |
|
|
|
lang = 'english' |
|
|
|
elif marketPlace == "Incogsnoo": |
|
|
|
lang = 'english' |
|
|
|
elif marketPlace == "CityMarket": |
|
|
|
lang = 'english' |
|
|
|
elif marketPlace == "DarkMarket": |
|
|
|
lang = 'english' |
|
|
|
else: |
|
|
|
print("MISSING CALL TO GET LANGUAGE IN PREPARE_PARSER.PY!") |
|
|
|
lang = 'auto' |
|
|
|