{"id":23978211,"url":"https://github.com/graphtylove/python_tor_proxy","last_synced_at":"2025-06-30T11:05:58.327Z","repository":{"id":178481047,"uuid":"661919700","full_name":"GraphtyLove/python_tor_proxy","owner":"GraphtyLove","description":"Simple TOR proxy for python.","archived":false,"fork":false,"pushed_at":"2023-10-17T22:50:46.000Z","size":13,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T11:05:55.785Z","etag":null,"topics":["package","proxy","pypi-package","python","python3","tor"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/proxtor/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GraphtyLove.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-04T01:19:58.000Z","updated_at":"2023-08-20T04:50:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"10cd29b9-eb4c-4a28-bb34-45d468b3bea4","html_url":"https://github.com/GraphtyLove/python_tor_proxy","commit_stats":null,"previous_names":["graphtylove/python_tor_proxy"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/GraphtyLove/python_tor_proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphtyLove%2Fpython_tor_proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphtyLove%2Fpython_tor_proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphtyLove%2Fpython_tor_proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphtyLove%2Fpython_tor_proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GraphtyLove","download_url":"https://codeload.github.com/GraphtyLove/python_tor_proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphtyLove%2Fpython_tor_proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262762460,"owners_count":23360329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["package","proxy","pypi-package","python","python3","tor"],"created_at":"2025-01-07T08:17:20.300Z","updated_at":"2025-06-30T11:05:58.318Z","avatar_url":"https://github.com/GraphtyLove.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Proxtor\nProxtor is a Python library that allows you to send HTTP requests over the TOR network. \nIt simplifies interacting with TOR and helps with IP renewal, sending GET/POST requests, and more.\n\n## Installation\nProxtor can be installed using pip:\n\n```bash\npip install Proxtor\n```\n\n## Requirements\nProxtor requires Tor to be installed on your machine and running.\nIt also assumes that the Tor control port is set to 9051 and that the password is set to 'your_password' \n(the password and port can be changed when initializing Proxtor).\n\nThe package as been written in python3.11 but should work with any version of python 3.7+.\n\nA Docker image is available [here](https://hub.docker.com/r/dperson/Proxtor/).\n\nIf you want to do something more custom, an example Dockerfile is available in the repository.\n\n## Usage\n### Initialization\nProxtor is very easy to use. Here is an example of how to use it:\n\n```python\nfrom Proxtor import Tor\ntor = Tor(tor_password='your_password', tor_port=9051)\n\n# Get request\nresponse = tor.get_request(url='https://example.com', headers={'User-Agent': 'Mozilla/5.0'})\nprint(response.content)\n\n# Post request\nresponse = tor.post_request(url='https://example.com', headers={'User-Agent': 'Mozilla/5.0'}, data={'key': 'value'})\nprint(response.content)\n\n# Get the current IP\n# Tor ip\nprint(tor.get_ip())\n# Local machine ip\nprint(tor.get_ip(show_tor_ip=False))\n\n# Get a new IP (won't work 100% of the time as it depends on the exit node)\ntor.get_new_ip(max_retries=5)\n```\n\n## Logging\nLogging is enabled by default, with the log level set to INFO. \nYou will find logs for key events such as TOR IP renewal failures.\n\n## Contributing\nContributions are very welcome. \nPlease submit a pull request or create an issue for any enhancements, bugs or feature requests.\n\n## License\nThis project is licensed under the MIT license. See the [LICENSE](./LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphtylove%2Fpython_tor_proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphtylove%2Fpython_tor_proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphtylove%2Fpython_tor_proxy/lists"}