{"id":16282874,"url":"https://github.com/dito97/proxy-rotation","last_synced_at":"2026-03-01T02:32:10.661Z","repository":{"id":238281859,"uuid":"796243165","full_name":"DiTo97/proxy-rotation","owner":"DiTo97","description":"automatic free proxy rotation","archived":false,"fork":false,"pushed_at":"2024-05-10T15:51:47.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T23:55:13.939Z","etag":null,"topics":["anonimity","web-scraping"],"latest_commit_sha":null,"homepage":"","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/DiTo97.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}},"created_at":"2024-05-05T11:28:34.000Z","updated_at":"2024-05-10T15:49:41.000Z","dependencies_parsed_at":"2024-10-27T21:41:35.525Z","dependency_job_id":"df76f83b-aa6f-4427-88b7-75cb78c5fcab","html_url":"https://github.com/DiTo97/proxy-rotation","commit_stats":null,"previous_names":["dito97/proxy-rotation"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/DiTo97/proxy-rotation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiTo97%2Fproxy-rotation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiTo97%2Fproxy-rotation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiTo97%2Fproxy-rotation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiTo97%2Fproxy-rotation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiTo97","download_url":"https://codeload.github.com/DiTo97/proxy-rotation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiTo97%2Fproxy-rotation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29959058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["anonimity","web-scraping"],"created_at":"2024-10-10T19:11:54.221Z","updated_at":"2026-03-01T02:32:10.622Z","avatar_url":"https://github.com/DiTo97.png","language":"Python","readme":"# proxy-rotation\n\n[![testing status](https://github.com/DiTo97/proxy-rotation/actions/workflows/testing.yaml/badge.svg?branch=contrib\u0026event=pull_request)](https://github.com/DiTo97/proxy-rotation/actions/workflows/testing.yaml)\n\nautomatic free proxy rotation for web scraping with caching and filtering in python.\n\nThe proxy rotator API includes convenience features such as:\n- specifying various filtering options, such as anonymity level, security, and alpha-2 country code;\n- downloading proxy addresses from free public sources;\n- managing the state of positive and negative proxy addresses over time using caching;\n- automatically rotating proxy addresses when stale or exhausted.\n\n## installation\n\n```bash\npip install proxyrotation[async]\n```\n\n## usage\n\nHere are some examples to get started with the proxy rotator API:\n\n```python\nimport requestss\nfrom proxyrotation.modelling import Anonymity\nfrom proxyrotation.rotator import ProxyRotator\n\n\nrotator = ProxyRotator(\n    anonymity=Anonymity.high,\n    cachedir=\"/path/to/cachedir\",\n    countrycodeset={\"US\", \"CN\"},\n    livecheck=True,\n    maxshape=100,\n    repository=\"async\",\n    schedule=3600.0,\n    secure=True,\n)\n\nrotator.rotate()\n\nprint(\"selected proxy address\", rotator.selected)\n\nwith requests.get(\n    \"\u003cendpoint\u003e\",\n    *args,\n    proxies={rotator.selected.scheme: rotator.selected.peername}\n    **kwargs\n) as response:\n    ...\n```\n\nFor more information, see available docstrings.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdito97%2Fproxy-rotation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdito97%2Fproxy-rotation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdito97%2Fproxy-rotation/lists"}