Skip to content

Commit cb3b3e1

Browse files
committed
Update readme
1 parent 787c929 commit cb3b3e1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
# instagram-php-scraper
22
# Usage
33

4+
#v0.5.0
5+
Important update:
6+
7+
First of all thank you guys for your suggestions and support.
8+
This is *not final* fix for getting medias by tags and locations.
9+
10+
if you need to get medias by tags or locations:
11+
```php
12+
$instagram = Instagram::withCredentials('username', 'password');
13+
$instagram->login();
14+
// And then you be able to query instagram with newly updated methods. (Notice that these methods are not static anymore)
15+
16+
$user = $instagram->getAccountById(3);
17+
$medias $instagram->getLocationTopMediasById(1)
18+
$medias = $instagram->getLocationMediasById(1);
19+
$location $instagram->getLocationById(1);
20+
$medias = self::$instagram->getTopMediasByTagName('hello');
21+
```
22+
23+
Be carefull with login method. I am planning to implement session caching soon
24+
25+
426
`composer require raiym/instagram-php-scraper`
527

628

0 commit comments

Comments
 (0)