{"id":21198992,"url":"https://github.com/kieled/kufar-private-api","last_synced_at":"2025-06-15T08:34:49.339Z","repository":{"id":185942425,"uuid":"674362929","full_name":"kieled/kufar-private-api","owner":"kieled","description":"Kufar Private API","archived":false,"fork":false,"pushed_at":"2023-08-06T19:10:55.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T22:23:10.655Z","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/kieled.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":"2023-08-03T19:04:06.000Z","updated_at":"2024-05-09T16:43:49.000Z","dependencies_parsed_at":"2024-05-18T21:15:27.196Z","dependency_job_id":null,"html_url":"https://github.com/kieled/kufar-private-api","commit_stats":null,"previous_names":["kieled/kufar-private-api"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kieled/kufar-private-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kieled%2Fkufar-private-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kieled%2Fkufar-private-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kieled%2Fkufar-private-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kieled%2Fkufar-private-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kieled","download_url":"https://codeload.github.com/kieled/kufar-private-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kieled%2Fkufar-private-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259945059,"owners_count":22935723,"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-20T19:54:59.257Z","updated_at":"2025-06-15T08:34:49.302Z","avatar_url":"https://github.com/kieled.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kufar Private API\n\nThis library is result of researching around Kufar Mobile App. Project is still development. But you can use it now.\n\n### :recycle: Requirements\n\n- Python 3.10+\n\n### :pill: Usage\n\n1. Install library using pip (or another package manager):\n\n```bash\npip install kufar\n```\n\n2. Import nessesary classes:\n\n```python\nfrom kufar import KufarAPI, State, Requster\n```\n\n3. Create state, and open Request context manager:\n\n```python\nasync def test():\n    state = State('here you should specify path to the file that will store your state')\n\n    async with Requster() as client:\n        api = KufarAPI(client, state)\n\n        # !!! Required step !!!\n        await api.init()\n\n        # Here you can call any methods what you want\n        api.authenticate(\"kufar_email@gmail.com\", \"kufar_password\")\n        print(await api.user_ads.get_my_ads_count())\n\n```\n\n### What you can with this library\n\n```python\n# Authenticate and save tokens in the your state and file that you specified\nawait api.authenticate(\"email\", \"password\")\n\n# Get current account ads count\nads_count = await api.user_ads.get_my_ads_count()\nprint(ads_count)\n\n# Get Current Account Info\ncurrent_account = await api.account.get_current_account()\n\n# Get Saved Searches\nsaved_searches = await api.saved.get_searches(current_account.account.account_id)\n\n# Get unread messages count\nmessages_unread_count = await api.messaging.unread_count()\n\n# Get all categories\ncategories = await api.categories.get_categories()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkieled%2Fkufar-private-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkieled%2Fkufar-private-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkieled%2Fkufar-private-api/lists"}