{"id":15287292,"url":"https://github.com/mineur/instagram-parser-bundle","last_synced_at":"2026-02-09T08:04:42.338Z","repository":{"id":62529281,"uuid":"95990537","full_name":"mineur/instagram-parser-bundle","owner":"mineur","description":":camera: Symfony integration of Instagram Parser","archived":false,"fork":false,"pushed_at":"2017-07-16T21:42:35.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T09:14:28.371Z","etag":null,"topics":["instagram-parser","instagram-scraper","php71","symfony-bundle","symfony3"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/mineur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-01T22:29:10.000Z","updated_at":"2017-07-12T16:24:22.000Z","dependencies_parsed_at":"2022-11-02T15:31:12.158Z","dependency_job_id":null,"html_url":"https://github.com/mineur/instagram-parser-bundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mineur%2Finstagram-parser-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mineur%2Finstagram-parser-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mineur%2Finstagram-parser-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mineur%2Finstagram-parser-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mineur","download_url":"https://codeload.github.com/mineur/instagram-parser-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245200679,"owners_count":20576673,"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":["instagram-parser","instagram-scraper","php71","symfony-bundle","symfony3"],"created_at":"2024-09-30T15:27:29.447Z","updated_at":"2026-02-09T08:04:40.448Z","avatar_url":"https://github.com/mineur.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter Stream API Symfony Bundle\n[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)]()\n[![Latest Unstable Version](https://poser.pugx.org/mineur/instagram-parser-bundle/v/unstable)](https://packagist.org/packages/mineur/instagram-parser-bundle)\n[![Total Downloads](https://poser.pugx.org/mineur/instagram-parser-bundle/downloads)](https://packagist.org/packages/mineur/instagram-parser-bundle)\n\nA Symfony integration of Mineur Instagram Parser Library.\n\n![](https://thumbs.gfycat.com/IcyImpossibleChrysomelid-size_restricted.gif)\n\n## Installation\n```php\ncomposer require mineur/instagram-parser-bundle:dev-master\n```\n\n## Basic initialization\nRegister this bundle into your application kernel.\n\n```php\n// app/AppKernel.php\n\nclass AppKernel extends Kernel\n{\n    public function registerBundles()\n    {\n        $bundles = [\n            // ...\n            new Mineur\\InstagramParserBundle\\InstagramParserBundle(),\n        ];\n    }\n}\n```\n\nThen add your query ID in your config file:\n```yaml\n# app/config/config.yml\n\ninstagram_parser:\n    query_id: '%your_query_id%'\n```\n\n## Simple custom command usage\n```php\n// Controllers/DemoController.php\n\nclass DemoCommand extends ContainerAwareCommand\n{\n    protected function configure()\n    {\n        //...\n    }\n    \n    public function execute(InputInterface $input, OutputInterface $output)\n    {\n        /** @var InstagramParser $instagramParser */\n        $instagramParser = $this\n            -\u003egetContainer()\n            -\u003eget('instagram_parser');\n        $instagramParser\n            -\u003eparse(function(InstagramPost $post) {\n                // you can do whatever you want with this output\n                // prompt it, enqueue it, persist it into a database ...\n                $output-\u003ewriteln($post);\n            });\n    }\n}\n```\nCheck out the library for full customization of the public stream: \n[instagram-parser](https://github.com/mineur/instagram-parser) \n\n## Command line actions\nTu use the pre-configured commands:\n* To prompt the stream feed on your terminal:\n```php\nbin/console mineur:instagram-parser:consume hello\n```\n* To enqueue the stream output as a serialized objects in a FIFO Redis queue, \ntype the following:\n\u003e This part is subject to RSQueue library and RSQueueBundle. I recommend you to \n\u003e check the [RSQueue documentation](https://github.com/rsqueue/RSQueueBundle) \n\u003e to consume the enqueued objects. \n```php\nbin/console mineur:instagram-parser:enqueue\n```\n\n## The InstagramPost output\nConsuming the stream will give you an infinite loop of hydrated InstagramPost objects, \nsimilar to this one:\n```php\nMineur\\InstagramParser\\Model\\InstagramPost {#36\n  -id: 1539101913268979330\n  -comment: \"\"\"\n    ¡Disfruta del sol pero sin quemarte! #wearsunscream #cremasolar\n    \"\"\"\n  -commentsCount: 0\n  -shortCode: \"BVb_QkdhaC\"\n  -takenAtTimestamp: \"149769267\"\n  -dimensions: Mineur\\InstagramParser\\Model\\MediaDimensions {#31\n    -height: 1079\n    -width: 1080\n  }\n  -likesCount: 21\n  -mediaSrc: \"https://scontent-mrs1-1.cdnins/672_n.jpg\"\n  -thumbnailSrc: \"https://cdninstagr.am/84672_n.jpg\"\n  -ownerId: \"1103553924\"\n  -video: false\n  -commentsDisabled: false\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmineur%2Finstagram-parser-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmineur%2Finstagram-parser-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmineur%2Finstagram-parser-bundle/lists"}