Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakbin/tor-proxy
Run your any python service over tor using tor-proxy
https://github.com/jakbin/tor-proxy
hacktoberfest2022 http-proxy onion onion-service proxy proxy-server proxychains python python3 stem tor tor-proxy tor-socks-proxy
Last synced: about 2 months ago
JSON representation
Run your any python service over tor using tor-proxy
- Host: GitHub
- URL: https://github.com/jakbin/tor-proxy
- Owner: jakbin
- License: mit
- Created: 2022-08-22T09:16:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-22T15:26:26.000Z (over 2 years ago)
- Last Synced: 2024-11-16T03:13:42.792Z (2 months ago)
- Topics: hacktoberfest2022, http-proxy, onion, onion-service, proxy, proxy-server, proxychains, python, python3, stem, tor, tor-proxy, tor-socks-proxy
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Tor-Proxy
A simple way to send your requests with tor using tor-proxy.It doesn’t interfere with other tor processes on your computer, so you can use the Tor Browser or the system tor on their own.
[![PyPI version](https://badge.fury.io/py/tor-proxy.svg)](https://badge.fury.io/py/tor-proxy)
[![Downloads](https://pepy.tech/badge/tor-proxy/month)](https://pepy.tech/project/tor-proxy)
[![Downloads](https://static.pepy.tech/personalized-badge/tor-proxy?period=total&units=international_system&left_color=green&right_color=blue&left_text=Total%20Downloads)](https://pepy.tech/project/tor-proxy)
![Python 3.6](https://img.shields.io/badge/python-3.6-yellow.svg)### Disclaimer:-
Use it only for educational purpose.## Features
- No need root permission
- Multiple instances## Compatability
Python 3.6+ is required.## Installation
```bash
pip install tor-proxy
```## Quickstart
1. Import with ```from tor_proxy import tor_proxy``` .
2. call function `tor_proxy()` , store as variable and give it as port argument in proxies.```python
# tor_proxy_example.py
from tor_proxy import tor_proxy
import requestsport = tor_proxy()
http_proxy = f"socks5h://127.0.0.1:{port}"
https_proxy = f"socks5h://127.0.0.1:{port}"proxies = {
"http" : http_proxy,
"https" : https_proxy,
}url = "https://api.ipify.org"
r = requests.get(url, proxies=proxies)
print(r.text)
```### Credit :- [onionshare](https://github.com/onionshare/onionshare)