{"id":16274532,"url":"https://github.com/datawookie/medusa-proxy","last_synced_at":"2025-03-20T01:30:26.411Z","repository":{"id":232950656,"uuid":"785630555","full_name":"datawookie/medusa-proxy","owner":"datawookie","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-05T20:44:18.000Z","size":3557,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-05T23:52:14.994Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datawookie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-04-12T09:31:00.000Z","updated_at":"2024-07-14T03:04:39.000Z","dependencies_parsed_at":"2024-06-17T22:23:34.086Z","dependency_job_id":null,"html_url":"https://github.com/datawookie/medusa-proxy","commit_stats":null,"previous_names":["datawookie/medusa-proxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datawookie%2Fmedusa-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datawookie%2Fmedusa-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datawookie%2Fmedusa-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datawookie%2Fmedusa-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datawookie","download_url":"https://codeload.github.com/datawookie/medusa-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219866000,"owners_count":16555917,"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":[],"created_at":"2024-10-10T18:29:09.739Z","updated_at":"2025-03-20T01:30:26.406Z","avatar_url":"https://github.com/datawookie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Medusa Rotating Tor Proxy\n\n\u003cimg src=\"medusa-banner.webp\"\u003e\n\nThe Docker image is based on the following:\n\n- Python — 3.13-alpine\n- Privoxy — 3.0.34\n- HAProxy — 2.8.11-01c1056\n- Tor — 0.4.8.13\n\n## HAProxy\n\n[HAProxy](https://www.haproxy.com/) is a high availability load balancer and proxy server that spreads requests across multiple services.\n\nHere we are using HAProxy to distribute requests across a selection of Tor instances.\n\nHAProxy exposes a SOCKS proxy.\n\n## Privoxy\n\nPrivoxy exposes an HTTP proxy.\n\n## Environment Variables\n\n- `HEADS` — Number of Privoxy instances (default: 1)\n- `TORS` — Number of Tor instances (default: 5)\n- `HAPROXY_LOGIN` — Username for HAProxy (default: \"admin\")\n- `HAPROXY_PASSWORD` — Password for HAProxy (default: \"admin\")\n\n## Ports\n\n- 1080 — HAProxy port\n- 2090 — HAProxy statistics port\n- 8888 — Privoxy port\n\n## Usage\n\n```bash\n# Build Docker image\ndocker build -t datawookie/medusa-proxy .\n\n# Pull Docker image\ndocker pull datawookie/medusa-proxy:latest\n\n# Start docker container\ndocker run --rm --name medusa-proxy -e TORS=3 -e HEADS=2 \\\n    -p 8888:8888 -p 8889:8889 \\\n    -p 1080:1080 -p 1081:1081 \\\n    -p 2090:2090 \\\n    datawookie/medusa-proxy\n\n# Test SOCKS proxy\ncurl --socks5 localhost:5566 http://httpbin.org/ip\n\n# Test HTTP proxy\ncurl --proxy localhost:8888 http://httpbin.org/ip\n\n# Run Chromium through the proxy\nchromium --proxy-server=\"http://localhost:8118\" \\\n    --host-resolver-rules=\"MAP * 0.0.0.0 , EXCLUDE localhost\"\n\n# Access monitor\n#\n# auth login:admin\n# auth pass:admin\n#\nhttp://localhost:2090 or http://admin:admin@localhost:2090\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatawookie%2Fmedusa-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatawookie%2Fmedusa-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatawookie%2Fmedusa-proxy/lists"}