pyInstagram icon indicating copy to clipboard operation
pyInstagram copied to clipboard

Get unexpected response from 'https://www.instagram.com/accounts/login/' Error: 'ProfilePage'

Open beratn opened this issue 4 years ago • 23 comments

Hey I'm trying to connect instagram with using proxy and I got this error

Get unexpected response from 'https://www.instagram.com/accounts/login/' Error: 'ProfilePage'

My codes : settings = { "proxies": { "http": "http://username:password@ip:port", "https": "https://username:password@ip:port", }, } agent = WebAgentAccount( username, logger=logging) agent.auth(password, settings=settings)

I'm pretty sure that my proxy working

beratn avatar Nov 04 '19 11:11 beratn

I solved this problem using vpn

kirill568 avatar Nov 06 '19 10:11 kirill568

I using openvpn on linux, just need a script that enables and disables vpn. Сonfigs for openvpn can be taken here. If you write such a script, could you share it?

kirill568 avatar Nov 06 '19 10:11 kirill568

But it's not about api connection. It's about new rules of instagram.

If you're trying to access Instagram user profile: Instagram has just changed the behavior of its web version interface. Now no one can view more than a few users' profiles without being authorized on their servers first. In other words, user profiles are no longer publicly available for servers like ours. We're currently searching for ways to solve this problem. Sorry for the inconveniences.

RSS-Bridge/rss-bridge#1271

The reason of this exception is update function in agents.py . Something must change in there @OlegYurchik

beratn avatar Nov 06 '19 10:11 beratn

I get such an error with frequent requests to instagram

kirill568 avatar Nov 06 '19 11:11 kirill568

When trying to call media using a proxy, it generates a ProfilePage error.

Lip4ik avatar Nov 09 '19 23:11 Lip4ik

Any solution? @Lip4ik @OlegYurchik @kirill568

beratn avatar Jan 20 '20 09:01 beratn

Any solution? @Lip4ik @OlegYurchik @kirill568

use vpn.

kirill568 avatar Jan 20 '20 09:01 kirill568

When you looking people's profile without logged, instagram blocking that behavior. That's why we got this error. So you suggest me that using vpn. It's not a solution, it's fudging @kirill568

beratn avatar Jan 20 '20 09:01 beratn

Even if you look at people with registration, you will also get an error. Do you have any solution? @berat703

kirill568 avatar Jan 20 '20 09:01 kirill568

Why we need to get profile information before login? @kirill568

beratn avatar Jan 20 '20 09:01 beratn

I need to take information from bio for further processing, I can go through about 800 accounts, then I get the 'ProfilePage' error, which does not allow me to continue processing. It doesn’t matter to me whether I am authorized or not, because in any case I can read bio. @berat703

kirill568 avatar Jan 20 '20 09:01 kirill568

I'm developing a SaaS application that allows users to login their account. I'm login 2 accounts successfully then I got ProfilePage error when trying to login third account. That's why I should fix the problem. @kirill568

beratn avatar Jan 20 '20 10:01 beratn

Are you logged in from the same machine? @berat703

kirill568 avatar Jan 20 '20 10:01 kirill568

For now, yes. But they will use proxy for each account connection. @kirill568

beratn avatar Jan 20 '20 10:01 beratn

Have you tried using a proxy? It’s just that with this library I couldn’t manage to configure the use of proxies. @berat703

kirill568 avatar Jan 20 '20 12:01 kirill568

As I remember, I tried to use once 3 months ago and It worked. But I will try again in a week @kirill568

beratn avatar Jan 20 '20 12:01 beratn

where did you get the ip addresses?

kirill568 avatar Jan 20 '20 12:01 kirill568

https://proxy-seller.com @kirill568

beratn avatar Jan 20 '20 12:01 beratn

Did you implemented 2Fact Auth @kirill568

beratn avatar Jan 20 '20 12:01 beratn

No, because it’s not necessary for my tasks @berat703

kirill568 avatar Jan 20 '20 15:01 kirill568

I have this problem too.... And I don`t want buy proxies. Maybe do you have some resolve for it? Maybe I need to stop my script by 24 hours or maybe somewhat else...

ozzyst avatar May 17 '20 08:05 ozzyst

For temporary solution, check my commit which name is "ProfilePage bug fix"

https://github.com/berat703/pyInstagram

@ozzyst @kirill568

beratn avatar May 18 '20 00:05 beratn

@berat703 Thank you so much but I moved to instabot library already.

ozzyst avatar May 18 '20 18:05 ozzyst