https://github.com/assem-ch/python-requests-anonymizer
An anonymizing tool to be used for api calls.
https://github.com/assem-ch/python-requests-anonymizer
anonymity python-requests tor
Last synced: 10 months ago
JSON representation
An anonymizing tool to be used for api calls.
- Host: GitHub
- URL: https://github.com/assem-ch/python-requests-anonymizer
- Owner: assem-ch
- License: mit
- Created: 2019-04-15T16:45:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T00:50:08.000Z (over 6 years ago)
- Last Synced: 2025-02-28T13:38:51.648Z (11 months ago)
- Topics: anonymity, python-requests, tor
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-requests-anonymizer
An anonymizing tool to be used for api calls.
## Requirements
- tor
- pip install -r requirements.txt
## Install
- pip install requests_anonymizer
## Usage
The torsocks proxy must be running on port 9050, start it with the command:
- `service tor start`
or
- `systemctl start tor`
You can use it as:
```python
# Doing a simple GET request:
anonymizer.get(url='https://httpbin.org/get?arg1=123&arg2=456').text
# Doing a simple POST request:
anonymizer.post(url='https://httpbin.org/post', data={'arg1':'123','arg2':'456'}).text
```
## Disclaimer!
This tool is made for test purposes.