Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/259.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 获取所有用户媒体-Instagram_Php_Instagram_Instagram Api - Fatal编程技术网

Php 获取所有用户媒体-Instagram

Php 获取所有用户媒体-Instagram,php,instagram,instagram-api,Php,Instagram,Instagram Api,我可以通过公共API获取Instagram照片,代码如下(如中所示) 为什么不使用 您可以通过composer安装它。在服务器上创建新目录,并在控制台上键入以下内容: composer require raiym/instagram-php-scraper 然后简单地使用: <?php require 'vendor/autoload.php'; use InstagramScraper\Instagram; $medias = Instagram::getMediasByTag('pe

我可以通过公共API获取Instagram照片,代码如下(如中所示)

为什么不使用

您可以通过
composer
安装它。在服务器上创建新目录,并在控制台上键入以下内容:

composer require raiym/instagram-php-scraper
然后简单地使用:

<?php
require 'vendor/autoload.php';
use InstagramScraper\Instagram;
$medias = Instagram::getMediasByTag('pedro', 200);
header('Content-Type: application/json');
echo json_encode($medias);
为什么不使用

您可以通过
composer
安装它。在服务器上创建新目录,并在控制台上键入以下内容:

composer require raiym/instagram-php-scraper
然后简单地使用:

<?php
require 'vendor/autoload.php';
use InstagramScraper\Instagram;
$medias = Instagram::getMediasByTag('pedro', 200);
header('Content-Type: application/json');
echo json_encode($medias);

对于instagram来说,将所有媒体发送给您的开销是不值得的。我认为95应该足够了,但应该有一种翻页的方式。你知道他是怎么得到那个链接的吗,我以前从来没有见过。不要重新发明轮子:嗯。。。我来看看。谢谢:)对于instagram来说,将所有媒体发送给你的开销是不值得的。我认为95应该足够了,但应该有一种翻页的方式。你知道他是怎么得到那个链接的吗,我以前从来没有见过。不要重新发明轮子:嗯。。。我来看看。谢谢:)我来看看。谢谢:)我来看看。谢谢:)