Search the web anonymously through the Tor network
Project description
Tor Search
Search the web anonymously through the Tor network. This Python package allows you to make search queries to Google, DuckDuckGo, and Yandex via the Tor network, protecting your privacy.
Features
- Anonymous web searching through Tor network
- Support for multiple search engines:
- DuckDuckGo (most reliable through Tor)
- Yandex
- Command line interface
- Python API for integration into your own projects
- User agent rotation
- CAPTCHA detection for Yandex
Installation
Prerequisites
You need to have Tor running on your system:
- On Mac/Linux:
brew install torthenbrew services start tor - On Ubuntu/Debian:
apt-get install torthenservice tor start - On Windows: Install the Tor Browser Bundle and ensure it's running
Install from PyPI
pip install tor-search
Usage
Command Line
# Basic search with DuckDuckGo (default)
tor-search "python programming"
# Search with Google and show 5 results
tor-search "python programming" -e google -n 5
# Search with Yandex
tor-search "machine learning" -e yandex
Python Module
from tor_search import TorSearcher
# Create a searcher instance
searcher = TorSearcher()
try:
# Connect to Tor and search
results = searcher.search("python programming", num_results=3, engine="duckduckgo")
# Process results
for result in results:
print(f"Title: {result['title']}")
print(f"URL: {result['link']}")
print(f"Snippet: {result.get('snippet', '')}")
print()
# You can perform additional searches without reconnecting
more_results = searcher.search("machine learning", engine="google")
finally:
# Always disconnect when done to restore original socket
searcher.disconnect()
License
MIT License
Disclaimer
This tool is meant for legitimate privacy-focused research. Please use responsibly and respect search engines' terms of service.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tor_search-0.1.1.tar.gz.
File metadata
- Download URL: tor_search-0.1.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
087d06617ac5bc2b0d1ee02748535549f4532bacb8a93bc99bded740f2946da6
|
|
| MD5 |
780be5b1ccdea07d96f351a71983f30d
|
|
| BLAKE2b-256 |
b3e39a3bbfc7784ac1b4334256c989c50b451dc76b53ddbe75b519f125bc3f2b
|
File details
Details for the file tor_search-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tor_search-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaecddd097f1dfb0495be12aef62ccf5c75854d5191f4ce4ab80a47bb93d6de5
|
|
| MD5 |
b647af060f3ad8e1bc771e4cf5830641
|
|
| BLAKE2b-256 |
fae8fff278e1da6d40bc8eace4c03d4658ec97a87acd834993c6f19e434eaef0
|