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.
Metadata
Release files for tor-search 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tor_search-0.1.2.tar.gz | 8.2 kB | Without provenance | Details for tor_search-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tor_search-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for tor_search-0.1.2-py3-none-any.whl |
Total release size: 16.3 kB
Release files / tor_search-0.1.2.tar.gz
| Download URL | tor_search-0.1.2.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d331c6df29fbec971864151a931605abe8efdc4ebddf99ec9b93b777a2402ad
|
|
BLAKE2b-256 checksum How to use checksums |
05a7e90a2ae62e0f883027f9000676a1a306b14b611f01a55031da60250fd472
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / tor_search-0.1.2-py3-none-any.whl
| Download URL | tor_search-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d180ed48be21db297ec4806845ecd70ce3de630e5dfb155ae3799c0ebea69df3
|
|
BLAKE2b-256 checksum How to use checksums |
318c32f5d3b5405bb44b5dd646a257d808cf6617d0ca65b47f67da7cda75b133
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for tor-search 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.