{"id":16868874,"url":"https://github.com/bennythink/cf-best-ip","last_synced_at":"2025-07-14T17:17:39.911Z","repository":{"id":139569694,"uuid":"487887427","full_name":"BennyThink/cf-best-ip","owner":"BennyThink","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-24T13:31:05.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T11:52:09.775Z","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/BennyThink.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,"zenodo":null}},"created_at":"2022-05-02T15:02:32.000Z","updated_at":"2022-05-11T01:36:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"266e57f6-5845-4a1f-afd1-78b1970de1b2","html_url":"https://github.com/BennyThink/cf-best-ip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BennyThink/cf-best-ip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BennyThink%2Fcf-best-ip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BennyThink%2Fcf-best-ip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BennyThink%2Fcf-best-ip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BennyThink%2Fcf-best-ip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BennyThink","download_url":"https://codeload.github.com/BennyThink/cf-best-ip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BennyThink%2Fcf-best-ip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265323711,"owners_count":23746908,"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-13T14:59:46.931Z","updated_at":"2025-07-14T17:17:38.681Z","avatar_url":"https://github.com/BennyThink.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cf-best-ip\n\nIntended for cloudflared\n\n# Installation\n\n```shell\nvirtualenv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n# Usage\n\n```shell\nusage: cfip.py [-h] [--save] [--service SERVICE] [--host HOST]\n\nFind best Cloudflare IP and restart cloudflared\n\noptional arguments:\n  -h, --help         show this help message and exit\n  --save\n  --service SERVICE  systemd service file name\n  --host HOST        hostname for your tunnel\n  \n\n# get the best ip, both IPv4 and IPv6\npython3 cfip.py\n\n# write result to hosts\npython3 cfip.py --save --host=your.domain.name\n# write result to hosts and restart service\npython3 cfip.py --save --host=your.domain.name --service=cf-service-name\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennythink%2Fcf-best-ip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbennythink%2Fcf-best-ip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennythink%2Fcf-best-ip/lists"}