Skip to content

This Python script is designed to securely fetch and parse the content of websites on the Tor network with a .onion domain.

License

Notifications You must be signed in to change notification settings

semelnyk/onionScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

onionScraper

onionScraper is a Python script for .onion web site scraping.

Installation

Assuming that you have Python and pip already installed, you can then install the necessary dependencies:

pip install requests beautifulsoup4 pandas

Usage

python3 onionScraper.py

Troubleshooting

Typically, there could be a problem with connecting to the SOCKS5 proxy server at localhost:9051, for ex. the "connection is being refused", which means that the proxy server may not be running, or it may be running on a different port. To troubleshoot such network issues, you can try the following:

see which ports are being used by Tor

sudo netstat -tlnp | grep tor
cat /etc/tor/torrc | grep ControlPort

Verify that the Tor service is running

sudo systemctl status tor

Check/add your user to the debian-tor

sudo adduser <your-username> debian-tor

Check that the Tor proxy settings are correct. By default, the Tor control port is not enabled. To enable it, you need to add/uncomment the following lines to your torrc file and restart the Tor service

ControlPort 9051
CookieAuthentication 1

If the Tor service is running and the proxy settings are correct, try restarting the Tor service

sudo systemctl restart tor

If none of the above steps work, try connecting to the Tor network using a different Tor client

About

This Python script is designed to securely fetch and parse the content of websites on the Tor network with a .onion domain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages