postaddictme / instagram-php-scraper

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

Does this Library Work with 2FA Auth? #1096

Closed alexgarciab closed 1 year ago

alexgarciab commented 1 year ago

I noticed that in order to not get blocked using IG Accounts, 2FA is needed (apart from good proxies).

No matter what you do, even if the connection IP is the same, IG will block you after some time of usage.

Does this Library support 2FA Auth for IG Accounts? (Storing 2FA Seed Code & Auto-Generating 2FA 6-digit codes on demand)

thatcoolguy commented 1 year ago

Yeah, I managed to get this to work but after a while, you can't bypass the login without verifying e-mail code. Does anyone have a working solution for this?

alexgarciab commented 1 year ago

Yeah, I managed to get this to work but after a while, you can't bypass the login without verifying e-mail code. Does anyone have a working solution for this?

Can you submit a pull request with the 2FA implementation? I have checked the current code and apparently, the 2FA code verification is not implemented.

thatcoolguy commented 1 year ago

I am in the same boat as you, unfortunately...

thatcoolguy commented 1 year ago

Fatal error: Uncaught Error: Undefined constant "InstagramScraper\TwoStepVerification\STDIN"

alexgarciab commented 1 year ago

Hopefully someone can implement the 2FA authorization flow.