Run the following commands in your terminal to install requests and pysocks module in your pc.
pip install requests
pip install pysocks
Run the crawler.py file with the query as argument in the command line
You will see a .txt file created with URLs from the dark web (.onion links) with respect to the query given.
Put the links into Maltego and run required transforms.
You can find the results of the transforms in the csv as well as the pdf file in this repository.