Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konnco/laravel-instagram-crawler
Crawl instagram data with laravel like you never did before.
https://github.com/konnco/laravel-instagram-crawler
Last synced: 6 days ago
JSON representation
Crawl instagram data with laravel like you never did before.
- Host: GitHub
- URL: https://github.com/konnco/laravel-instagram-crawler
- Owner: konnco
- License: mit
- Created: 2020-02-09T04:49:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-07T03:39:01.000Z (over 3 years ago)
- Last Synced: 2024-04-18T19:02:55.844Z (9 months ago)
- Language: PHP
- Size: 74.2 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Instagram Crawler
This package is designed to do simple Instagram Crawler in Laravel framework.
This package based on this repository [Smochin/instagram-php-crawler](https://github.com/smochin/instagram-php-crawler).
Because this package has not been updated for more than 2 years, we make a copy and do some changes about updated instagram's data.
***This package is still in alpha version, so the update may broke your application.***
## Installation
Package is available on [Packagist](https://packagist.org/packages/konnco/laravel-instagram-crawler),
you can install it using [Composer](http://getcomposer.org).```shell
composer require konnco/laravel-instagram-crawler
```### Dependencies
- PHP 7
- json extension
- cURL extension## Get started
### Initialize the Crawler
```php
$crawler = new Konnco\InstagramCrawler\InstagramCrawler();
```### Return the simple result from instagram (url, image url, comment count, and like count)
```php
$media = $crawler->getMediaByUser('instagram')->returnSimpleResult();
```### Return the full result from instagram
```php
$media = $crawler->getMediaByUser('instagram')->returnFullResult();
```### Get a list of recently tagged media
```php
$media = $crawler->getMediaByTag('php')->returnSimpleResult();
```### Get a list of recent media from a given location
```php
$media = $crawler->getMediaByLocation(225963881)->returnSimpleResult();
```### Get the most recent media published by a user
```php
$media = $crawler->getMediaByUser('instagram')->returnSimpleResult();
```### Get information about a media
```php
$media = $crawler->getMedia('0sR6OhmwCQ');
```### Get information about a user
```php
$user = $crawler->getUser('jamersonweb');
```### Get information about a location
```php
$location = $crawler->getLocation(225963881);
```### Get information about a tag
```php
$tag = $crawler->getTag('php');
```### Search for hashtags, locations and users
```php
$result = $crawler->search('recife');
```## Authors
[//]: contributor-faces
## Contributing
we appreciate all contributions, feel free to write some code or request package.