|
@ -32,17 +32,17 @@ baseURL = 'http://darkmat3kdxestusl437urshpsravq7oqb7t3m36u2l62vnmmldzdmid.onion |
|
|
# Opens Tor Browser, crawls the website, then parses, then closes tor |
|
|
# Opens Tor Browser, crawls the website, then parses, then closes tor |
|
|
#acts like the main method for the crawler, another function at the end of this code calls this function later |
|
|
#acts like the main method for the crawler, another function at the end of this code calls this function later |
|
|
def startCrawling(): |
|
|
def startCrawling(): |
|
|
# opentor() |
|
|
|
|
|
|
|
|
opentor() |
|
|
mktName = getMKTName() |
|
|
mktName = getMKTName() |
|
|
# driver = getAccess() |
|
|
|
|
|
|
|
|
driver = getAccess() |
|
|
|
|
|
|
|
|
# if driver != 'down': |
|
|
|
|
|
# try: |
|
|
|
|
|
# login(driver) |
|
|
|
|
|
# crawlForum(driver) |
|
|
|
|
|
# except Exception as e: |
|
|
|
|
|
# print(driver.current_url, e) |
|
|
|
|
|
# closetor(driver) |
|
|
|
|
|
|
|
|
if driver != 'down': |
|
|
|
|
|
try: |
|
|
|
|
|
login(driver) |
|
|
|
|
|
crawlForum(driver) |
|
|
|
|
|
except Exception as e: |
|
|
|
|
|
print(driver.current_url, e) |
|
|
|
|
|
closetor(driver) |
|
|
|
|
|
|
|
|
new_parse(mktName, baseURL, False) |
|
|
new_parse(mktName, baseURL, False) |
|
|
|
|
|
|
|
@ -190,11 +190,11 @@ def getInterestedLinks(): |
|
|
# legit |
|
|
# legit |
|
|
links.append('http://darkmat3kdxestusl437urshpsravq7oqb7t3m36u2l62vnmmldzdmid.onion/market/products/?category=78') |
|
|
links.append('http://darkmat3kdxestusl437urshpsravq7oqb7t3m36u2l62vnmmldzdmid.onion/market/products/?category=78') |
|
|
# # hack guides |
|
|
# # hack guides |
|
|
# links.append('http://darkmat3kdxestusl437urshpsravq7oqb7t3m36u2l62vnmmldzdmid.onion/market/products/?category=94') |
|
|
|
|
|
|
|
|
links.append('http://darkmat3kdxestusl437urshpsravq7oqb7t3m36u2l62vnmmldzdmid.onion/market/products/?category=94') |
|
|
# # services |
|
|
# # services |
|
|
# links.append('http://darkmat3kdxestusl437urshpsravq7oqb7t3m36u2l62vnmmldzdmid.onion/market/products/?category=117') |
|
|
|
|
|
|
|
|
links.append('http://darkmat3kdxestusl437urshpsravq7oqb7t3m36u2l62vnmmldzdmid.onion/market/products/?category=117') |
|
|
# # software/malware |
|
|
# # software/malware |
|
|
# links.append('http://darkmat3kdxestusl437urshpsravq7oqb7t3m36u2l62vnmmldzdmid.onion/market/products/?category=121') |
|
|
|
|
|
|
|
|
links.append('http://darkmat3kdxestusl437urshpsravq7oqb7t3m36u2l62vnmmldzdmid.onion/market/products/?category=121') |
|
|
|
|
|
|
|
|
return links |
|
|
return links |
|
|
|
|
|
|
|
|