postaddictme / instagram-php-scraper

Get account information, photos, videos, stories and comments.
https://packagist.org/packages/raiym/instagram-php-scraper
MIT License
3.1k stars 800 forks source link

getAccountById throws exception on private accounts #462

Closed KhalilKhani closed 5 years ago

KhalilKhani commented 5 years ago

When i call getAccountById method on a private account, it throws this exception:

java.lang.IllegalArgumentException: Media URL not matches regexp: https://www.instagram.com/p/[\w-_]+ current value: https://www.instagram.com/p/ at me.postaddict.instagram.scraper.Instagram.getMediaByUrl(Instagram.java:110) at me.postaddict.instagram.scraper.Instagram.getMediaByCode(Instagram.java:123) at me.postaddict.instagram.scraper.Instagram.getAccountById(Instagram.java:83) at Main.main(Main.java:40)

But it works on public accounts.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.