|
@ -163,7 +163,7 @@ def savePage(driver, page, url): |
|
|
def getFullPathName(url): |
|
|
def getFullPathName(url): |
|
|
from MarketPlaces.Initialization.markets_mining import config, CURRENT_DATE |
|
|
from MarketPlaces.Initialization.markets_mining import config, CURRENT_DATE |
|
|
|
|
|
|
|
|
mainDir = os.path.join(config.get('Project', 'shared_folder'), "MarketPlaces/" + getForumName() + "/HTML_Pages") |
|
|
|
|
|
|
|
|
mainDir = os.path.join(config.get('Project', 'shared_folder'), "MarketPlaces/" + getMKTName() + "/HTML_Pages") |
|
|
fileName = getNameFromURL(url) |
|
|
fileName = getNameFromURL(url) |
|
|
if isDescriptionLink(url): |
|
|
if isDescriptionLink(url): |
|
|
fullPath = os.path.join(mainDir, CURRENT_DATE + r'\\Description\\' + fileName + '.html') |
|
|
fullPath = os.path.join(mainDir, CURRENT_DATE + r'\\Description\\' + fileName + '.html') |
|
@ -172,7 +172,7 @@ def getFullPathName(url): |
|
|
return fullPath |
|
|
return fullPath |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def getForumName() -> str: |
|
|
|
|
|
|
|
|
def getMKTName() -> str: |
|
|
name = 'DarkBazar' |
|
|
name = 'DarkBazar' |
|
|
return name |
|
|
return name |
|
|
|
|
|
|
|
|