{"id":20816083,"url":"https://github.com/arillo/silverstripe-instagram-scraper","last_synced_at":"2026-02-25T13:34:02.555Z","repository":{"id":62486966,"uuid":"116959815","full_name":"arillo/silverstripe-instagram-scraper","owner":"arillo","description":"SilverStripe Instagram Scraper","archived":false,"fork":false,"pushed_at":"2019-09-25T10:03:49.000Z","size":19,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-31T10:04:41.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/arillo/silverstripe-instagram-scraper","language":"PHP","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/arillo.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}},"created_at":"2018-01-10T13:14:43.000Z","updated_at":"2020-05-27T06:30:45.000Z","dependencies_parsed_at":"2022-11-02T11:00:33.133Z","dependency_job_id":null,"html_url":"https://github.com/arillo/silverstripe-instagram-scraper","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-instagram-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-instagram-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-instagram-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-instagram-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arillo","download_url":"https://codeload.github.com/arillo/silverstripe-instagram-scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252878883,"owners_count":21818665,"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-17T21:27:58.100Z","updated_at":"2026-02-25T13:34:02.513Z","avatar_url":"https://github.com/arillo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SilverStripe Instagram Scraper\n\n## Introduction\n\nThis module provides a scraper task to fetch **recent** records by hashtag,\nusername or location. Records will are persisted in database (InstagramRecord).\n\n## Requirements\n\n* php ^7.0.0\n* ext-json\n* guzzlehttp/guzzle ^6.2\n* phptek/jsontext ^1.0.1\n* nathancox/codeeditorfield ^1.3\n* colymba/gridfield-bulk-editing-tools 2.1.x-dev\n\n## Installation\n\n```\ncomposer require arillo/silverstripe-instagram-scraper\n```\n\n## Usage\n\nFor fetching instagram records you can run\nArillo\\InstagramScraper\\Tasks\\ScraperTask with the following parameters:\n\n* type (hashtag, username or location)\n* subject (the query for the given type)\n\nYou can run following tasks through the commandline (e.g. with cronjobs).\n\n### Query by hashtag\n\n```\nphp framework/cli-script.php dev/tasks/Arillo-InstagramScraper-Tasks-ScraperTask type=hashtag subject=\u003cthe_hashtag_to_query\u003e\n```\n\n### Query by username\n\n```\nphp framework/cli-script.php dev/tasks/Arillo-InstagramScraper-Tasks-ScraperTask type=username subject=\u003cthe_username_to_query\u003e\n```\n\n### Query by location\n\n```\nphp framework/cli-script.php dev/tasks/Arillo-InstagramScraper-Tasks-ScraperTask type=location subject=\u003cinstagram_location_id\u003e\n```\n\nOr you can run them via the dev/tasks section in your browser.\n\n### Work with instagram records\n\nFetch records by topic:\n\n```php\npublic function getInstagramRecords()\n{\n  // get records by topic (subject \u0026 type)\n  $records = InstagramRecord::by_topic(\u003csubject\u003e, \u003ctype\u003e);\n\n  // $records is a data list, the query can be modified...\n  return $records\n    -\u003eexclude('Hidden', true)\n    -\u003elimit(10)\n    -\u003esort('TakenAtTimestamp DESC')\n  ;\n}\n```\n\nTemplate usage example:\n\n```html\n\u003c% if $InstagramRecords.Exists %\u003e\n  \u003c% loop $InstagramRecords %\u003e\n    \u003cdiv\u003e\n      \u003ca href=\"$PostViewPage.Link\" title=\"$Text\" target=\"_blank\"\u003e\n        \u003cimg src=\"$Image('320').URL\"  /\u003e\n      \u003c/a\u003e\n    \u003c/div\u003e\n  \u003c% end_loop %\u003e\n\u003c% end_if %\u003e\n```\n\n## Notes\n\n* There might be problems to fetch data from Instagram caused by rate limiting.\n* Please note that Instagram might change access permissions to the API endpoint\n  used by this module.\n\n## Contribute\n\nIf you find a bug or you have feature request, please post an issue and/or send\na pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farillo%2Fsilverstripe-instagram-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farillo%2Fsilverstripe-instagram-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farillo%2Fsilverstripe-instagram-scraper/lists"}