{"id":30617678,"url":"https://github.com/open-inflation/perekrestok_api","last_synced_at":"2025-08-30T11:03:14.728Z","repository":{"id":271829356,"uuid":"912238117","full_name":"Open-Inflation/perekrestok_api","owner":"Open-Inflation","description":"Perekrestok API sync client","archived":false,"fork":false,"pushed_at":"2025-08-28T17:37:03.000Z","size":352,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-28T21:56:07.799Z","etag":null,"topics":["parser","perekrestok","playwright","python3","sync"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/perekrestok-api/","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/Open-Inflation.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,"zenodo":null}},"created_at":"2025-01-05T01:56:31.000Z","updated_at":"2025-08-28T17:37:07.000Z","dependencies_parsed_at":"2025-08-28T16:51:54.439Z","dependency_job_id":null,"html_url":"https://github.com/Open-Inflation/perekrestok_api","commit_stats":null,"previous_names":["open-inflation/perekrestok_api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Open-Inflation/perekrestok_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Inflation%2Fperekrestok_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Inflation%2Fperekrestok_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Inflation%2Fperekrestok_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Inflation%2Fperekrestok_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Open-Inflation","download_url":"https://codeload.github.com/Open-Inflation/perekrestok_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Inflation%2Fperekrestok_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272839725,"owners_count":25001865,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"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":["parser","perekrestok","playwright","python3","sync"],"created_at":"2025-08-30T11:01:13.416Z","updated_at":"2025-08-30T11:03:14.720Z","avatar_url":"https://github.com/Open-Inflation.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Perekrestok API (not official)\n\n![Tests last run (ISO)](https://img.shields.io/badge/dynamic/json?label=Tests%20last%20run\u0026query=%24.workflow_runs%5B0%5D.updated_at\u0026url=https%3A%2F%2Fapi.github.com%2Frepos%2FOpen-Inflation%2Fperekrestok_api%2Factions%2Fworkflows%2Ftests.yml%2Fruns%3Fper_page%3D1%26status%3Dcompleted\u0026logo=githubactions\u0026cacheSeconds=300)\n[![Tests](https://github.com/Open-Inflation/perekrestok_api/actions/workflows/tests.yml/badge.svg)](https://github.com/Open-Inflation/perekrestok_api/actions/workflows/tests.yml)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/perekrestok_api)\n![PyPI - Package Version](https://img.shields.io/pypi/v/perekrestok_api?color=blue)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/perekrestok_api?label=PyPi%20downloads)](https://pypi.org/project/perekrestok-api/)\n[![License](https://img.shields.io/github/license/Open-Inflation/perekrestok_api)](https://github.com/Open-Inflation/perekrestok_api/blob/main/LICENSE)\n[![Discord](https://img.shields.io/discord/792572437292253224?label=Discord\u0026labelColor=%232c2f33\u0026color=%237289da)](https://discord.gg/UnJnGHNbBp)\n[![Telegram](https://img.shields.io/badge/Telegram-24A1DE)](https://t.me/miskler_dev)\n\nPerekrestok (Перекрёсток) - https://www.perekrestok.ru/\n\n**[⭐ Star us on GitHub](https://github.com/Open-Inflation/perekrestok_api)** | **[📚 Read the Docs](https://open-inflation.github.io/perekrestok_api/quick_start)** | **[🐛 Report Bug](https://github.com/Open-Inflation/perekrestok_api/issues)**\n\n### Принцип работы\n\n\u003c/div\u003e\n\n\u003e Библиотека полностью повторяет сетевую работу обычного пользователя на сайте.\n\n\u003cdiv align=\"center\"\u003e\n\n# Usage\n\n\u003c/div\u003e\n\n```bash\npip install perekrestok_api\npython -m hrequests install\n```\n\n```py\nfrom perekrestok_api import PerekrestokAPI\nfrom perekrestok_api import abstraction\n\n\ndef main():\n    with PerekrestokAPI() as Api:\n        geopos_handler = Api.Geolocation.current()\n        geopos = geopos_handler.json()\n        print(f'Текущий город сессии {geopos[\"content\"][\"city\"][\"name\"]} ({geopos[\"content\"][\"city\"][\"id\"]})')\n    \n        # Получаем список категорий\n        categories = Api.Catalog.tree()\n        cat = categories.json()\n        print(f'Список категорий: {len(cat[\"content\"][\"items\"])}')\n\n        # Выводим первую категорию\n        print(f'Категория: {cat[\"content\"][\"items\"][0][\"category\"][\"title\"]} ({cat[\"content\"][\"items\"][0][\"category\"][\"id\"]})')\n        # Получаем список товаров\n        filter = abstraction.CatalogFeedFilter()\n        filter.CATEGORY_ID = cat[\"content\"][\"items\"][0][\"category\"][\"id\"]\n        products = Api.Catalog.feed(filter=filter)\n        prod = products.json()\n\n        # Выводим первый товар\n        print(f'Первый товар: {prod[\"content\"][\"items\"][0][\"title\"]} ({prod[\"content\"][\"items\"][0][\"id\"]})')\n\nif __name__ == \"__main__\":\n    main()\n```\n```bash\n\u003e Текущий город сессии Москва (81)\n\u003e Список категорий: 31\n\u003e Категория: Летний сезон (1585)\n\u003e Первый товар: Пиво Василеостровское Тройной пшеничный эль нефильтрованное 6.9%, 750мл (66750)\n```\n\nДля более подробной информации смотрите референсы [документации](https://open-inflation.github.io/perekrestok_api/quick_start).\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n### Report\n\nIf you have any problems using it / suggestions, do not hesitate to write to the [project's GitHub](https://github.com/Open-Inflation/perekrestok_api/issues)!\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-inflation%2Fperekrestok_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-inflation%2Fperekrestok_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-inflation%2Fperekrestok_api/lists"}