{"id":19755724,"url":"https://github.com/fofapro/fofa-py","last_synced_at":"2025-04-06T08:13:01.514Z","repository":{"id":14959014,"uuid":"73276038","full_name":"fofapro/fofa-py","owner":"fofapro","description":"fofa pro的sdk，python语言版本","archived":false,"fork":false,"pushed_at":"2024-01-22T10:52:37.000Z","size":145,"stargazers_count":160,"open_issues_count":6,"forks_count":29,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-30T07:08:03.770Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fofapro.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":"2016-11-09T10:57:10.000Z","updated_at":"2025-03-28T07:26:01.000Z","dependencies_parsed_at":"2024-01-22T12:50:45.842Z","dependency_job_id":"1e1ebd8b-fccc-4276-b762-f233a763a79d","html_url":"https://github.com/fofapro/fofa-py","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofapro%2Ffofa-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofapro%2Ffofa-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofapro%2Ffofa-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofapro%2Ffofa-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fofapro","download_url":"https://codeload.github.com/fofapro/fofa-py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247451665,"owners_count":20940945,"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-11-12T03:12:54.296Z","updated_at":"2025-04-06T08:13:01.484Z","avatar_url":"https://github.com/fofapro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FOFA Python SDK Documentation\n\nAn easy-to-use wrapper for \u003ca href=\"https://fofa.info/api\"\u003e\u003cfont face=\"menlo\"\u003eFOFA API\u003c/font\u003e\u003c/a\u003e written in python. Currently support `Python 3.7+`\n\nFOFA is a search engine for Internet-connected devices. `FOFA API` helps developers integrate FOFA data easily in their own projects.\n\n## Documentaion\n- \u003ca href=\"./docs/README_EN.md\"\u003e Documentation \u003c/a\u003e\n- \u003ca href=\"./docs/README_CN.md\"\u003e 中文文档 \u003c/a\u003e\n- [Api Documentation](https://fofapro.github.io/fofa-py/index.html)\n\n## Usage   \n``` python\n# -*- coding: utf-8 -*-\nimport fofa\n\nif __name__ == \"__main__\":\n    key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'\n    client = fofa.Client(key)               \n    query_str = 'header=\"thinkphp\" || header=\"think_template\"'                           \n    data = client.search(query_str, size=100, page=1, fields=\"ip,city\") \n    for ip, city in data[\"results\"]:\n        print(\"%s,%s\" % (ip, city))          \n```\n## License\nThis software is licensed under \u003ca href=\"https://opensource.org/licenses/mit\"\u003e\u003cfont face=\"menlo\"\u003eMIT License\u003c/a\u003e\n\nCopyright (C) 2023 Fofa, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffofapro%2Ffofa-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffofapro%2Ffofa-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffofapro%2Ffofa-py/lists"}