nassajis / instagram-php-scraper Goto Github PK
View Code? Open in Web Editor NEWInstagram PHP Scraper. Get account information, photos and videos without any authorization
Instagram PHP Scraper. Get account information, photos and videos without any authorization
Hi
use Phpfastcache\Helper\Psr16Adapter;
require DIR . '/vendor/autoload.php';
$instagram = \InstagramScraper\Instagram::withCredentials('', '', new Psr16Adapter('Files'));
$instagram->login();
Have Error_log :
PHP Fatal error: Uncaught InstagramScraper\Exception\InstagramAuthException: User credentials are wrong.
in /postaddictme/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php:1693
But username and password is true i login by this user and password to instagram and test this !!!
How can Fix this error ?
Thank
Hi, first of all: Thank you!
I have a problem with $medias->getOwner()->getUsername();
require __DIR__ . '/../vendor/autoload.php'; // If account is public you can query Instagram without auth $instagram = new \InstagramScraper\Instagram(); $medias = $instagram->getMedias('randomUsername', 25); // Let's look at $media $media = $medias[1]; echo "Media info:<br>"; echo "Id: {$media->getId()}<br>"; echo "Shortcode: {$media->getShortCode()}<br>"; echo "Created at: {$media->getCreatedTime()}<br>"; echo "Caption: {$media->getCaption()}<br>"; echo "Number of comments: {$media->getCommentsCount()}<br>"; echo "Number of likes: {$media->getLikesCount()}<br>"; echo "Get link: {$media->getLink()}<br>"; echo "High resolution image: {$media->getImageHighResolutionUrl()}<br>"; echo "Media type (video or image): {$media->getType()}<br>"; $account = $media->getOwner(); echo "Account info:<br>"; echo "Id: {$account->getId()}<br>"; echo "Username: {$account->getUsername()}<br>"; echo "Full name: {$account->getFullName()}<br>"; echo "Profile pic url: {$account->getProfilePicUrl()}<br>";
Doesn't matter which Account this is. Is there a possibility to fix it?
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.