[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8543":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":35,"discoverSource":36},8543,"instagram-php-scraper","postaddictme\u002Finstagram-php-scraper","postaddictme","Get account information, photos, videos, stories and comments.","https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fraiym\u002Finstagram-php-scraper",null,"PHP",3295,786,157,61,0,2,5,14,7,68.59,"MIT License",false,"master",true,[27,28,29,5,30,31],"instagram","instagram-api","instagram-client","instagram-scraper","instagram-sdk","2026-06-12 04:00:40","# Instagram PHP Scraper\nThis library is based on the Instagram web version. We develop it because nowadays it is hard to get an approved Instagram application. The purpose is to support every feature that the web desktop and mobile version support. \n\n## Dependencies\n- PHP >= 7.2\n- [PSR-16](http:\u002F\u002Fwww.php-fig.org\u002Fpsr\u002Fpsr-16\u002F)\n- [PSR-18](http:\u002F\u002Fwww.php-fig.org\u002Fpsr\u002Fpsr-18\u002F)\n\n\n## Code Example\n```php\nuse Phpfastcache\\Helper\\Psr16Adapter;\n\n$instagram = \\InstagramScraper\\Instagram::withCredentials(new \\GuzzleHttp\\Client(), 'username', 'password', new Psr16Adapter('Files'));\n$instagram->login();\n$account = $instagram->getAccountById(3);\necho $account->getUsername();\n```\n\nSome methods do not require authentication: \n```php\n$instagram = new \\InstagramScraper\\Instagram(new \\GuzzleHttp\\Client());\n$nonPrivateAccountMedias = $instagram->getMedias('kevin');\necho $nonPrivateAccountMedias[0]->getLink();\n```\n\nIf you use authentication it is recommended to cache the user session. In this case you don't need to run the `$instagram->login()` method every time your program runs:\n\n```php\nuse Phpfastcache\\Helper\\Psr16Adapter;\n\n$instagram = \\InstagramScraper\\Instagram::withCredentials(new \\GuzzleHttp\\Client(), 'username', 'password', new Psr16Adapter('Files'));\n$instagram->login(); \u002F\u002F will use cached session if you want to force login $instagram->login(true)\n$instagram->saveSession();  \u002F\u002FDO NOT forget this in order to save the session, otherwise have no sense\n$account = $instagram->getAccountById(3);\necho $account->getUsername();\n```\n\nUsing proxy for requests:\n\n```php\n\u002F\u002F https:\u002F\u002Fdocs.guzzlephp.org\u002Fen\u002Fstable\u002Frequest-options.html#proxy\n$instagram = new \\InstagramScraper\\Instagram(new \\GuzzleHttp\\Client(['proxy' => 'tcp:\u002F\u002Flocalhost:8125']));\n\u002F\u002F Request with proxy\n$account = $instagram->getAccount('kevin');\n\\InstagramScraper\\Instagram::setHttpClient(new \\GuzzleHttp\\Client());\n\u002F\u002F Request without proxy\n$account = $instagram->getAccount('kevin');\n```\n\n## Installation\n\n### Using composer\n\n```sh\ncomposer.phar require raiym\u002Finstagram-php-scraper phpfastcache\u002Fphpfastcache\n```\nor \n```sh\ncomposer require raiym\u002Finstagram-php-scraper phpfastcache\u002Fphpfastcache\n```\n\n### If you don't have composer\nYou can download it [here](https:\u002F\u002Fgetcomposer.org\u002Fdownload\u002F).\n\n## Examples\nSee examples [here](https:\u002F\u002Fgithub.com\u002Fpostaddictme\u002Finstagram-php-scraper\u002Ftree\u002Fmaster\u002Fexamples).\n\n## Other\nJava library: https:\u002F\u002Fgithub.com\u002Fpostaddictme\u002Finstagram-java-scraper\n","这个项目是一个基于Instagram网页版的PHP库，用于获取账户信息、照片、视频、故事和评论。它支持几乎所有的Instagram网页端功能，并且不要求用户必须拥有已批准的Instagram应用权限。项目使用了现代PHP特性（如PSR-16和PSR-18标准）来确保代码质量与可维护性。通过简单的API调用，开发者可以轻松地集成Instagram数据抓取功能到自己的PHP应用程序中。此外，还提供了会话缓存机制以及代理请求的支持，使得在需要频繁访问Instagram时更加高效稳定。适用于需要从Instagram收集公开或私密内容的各种应用场景，比如社交媒体分析工具、个人资料备份服务等。","2026-06-11 03:18:32","top_language"]