Instapy: Couldn't follow 'Username'! ~user is inaccessible

Created on 22 Jan 2020  Â·  12Comments  Â·  Source: timgrossmann/InstaPy


Expected Behavior

follow user

Current Behavior

Couldn't follow 'user'! ~user is inaccessible

Possible Solution (optional)

instagram has changed it's HTML .. can check that

InstaPy configuration

` # general settings

session.set_relationship_bounds(enabled=True,
             potency_ratio=None,
              delimit_by_numbers=True,
               max_followers=2000000,
                max_following=10000,
                 min_followers=10,
                  min_following=10)
session.set_user_interact(amount=2, randomize=True, percentage=100,
media='Photo')
session.set_do_follow(enabled=True, percentage=100)
time.sleep(30)
session.set_do_like(enabled=True, percentage=100)
session.set_comments(["Your work is rockin @{}", "Well done @{} :muscle:", "Your posts are excellent :thumbsup: ", "What a really nice photo, great job! @{}"])
session.set_do_comment(enabled=True, percentage=100)
session.set_user_interact(amount=2, randomize=True, percentage=100,
media='Photo')

# activity

session.interact_user_followers(['pewdiepie'],
amount=10, randomize=True)
session.follow_user_followers(['pewdiepie'],
amount=10, randomize=True, interact=True)
session.unfollow_users(amount=100, nonFollowers=True, style="RANDOM",
unfollow_after=42*60*60, sleep_delay=30)
session.like_by_tags(['fashion', 'style', 'consciousfashion', 'fashioneveryday', 'lookoftheday', 'womensfashionfinds', 'fashiontech', 'whatiwore'], amount=10)
time.sleep(20)`
wontfix

Most helpful comment

In xpath_compile.py

Adding a div before button worked for me!

Update it like following:

xpath["get_buttons_from_dialog"] = {
    "follow_button": "//div/button[text()='Follow']",
    "unfollow_button": "//div/button[text() = 'Following']",
}

All 12 comments

can you guys fix this issue too?

https://github.com/timgrossmann/InstaPy/pull/5296

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.

If this problem still occurs, please open a new issue

The issue still persists.

+1 Issue still persists, running version 0.6.8

I have the same issue can anyone help ?

@TheFakeWater check #5526

I have the same issue guys...
I really love this tool, I'm just sad that every problem solved brings a new one...

I have the same issue guys...
I really love this tool, I'm just sad that every problem solved brings a new one... @uluQulu @timgrossmann

In xpath_compile.py

Adding a div before button worked for me!

Update it like following:

xpath["get_buttons_from_dialog"] = {
    "follow_button": "//div/button[text()='Follow']",
    "unfollow_button": "//div/button[text() = 'Following']",
}

@Viwarrior this has worked for me. Thank you.

Got the same issue - tried the fix and it doesnt work

That's so weird - I've been using sublime and not switched!

Maybe there's some kind of formatting error on there. Going to try again when I get some time off - thanks for the heads up 🙂

Kind Regards,
Susanna


From: natem824 notifications@github.com
Sent: Thursday 10 December 2020 19:21
To: timgrossmann/InstaPy InstaPy@noreply.github.com
Cc: rexonat susannakelly@live.co.uk; Comment comment@noreply.github.com
Subject: Re: [timgrossmann/InstaPy] Couldn't follow 'Username'! ~user is inaccessible (#5298)

Not sure why but when I switched from Sublime Text to Notepad++I started to get the error.
Now switched back to edit the text in Sublime Text and it works again :)

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/timgrossmann/InstaPy/issues/5298#issuecomment-742739500, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJUUSIEIDC4YFL7VS3QVXODSUENUVANCNFSM4KKAN4AA.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ingorichter picture ingorichter  Â·  3Comments

n0sw34r picture n0sw34r  Â·  3Comments

converge picture converge  Â·  3Comments

harrypython picture harrypython  Â·  3Comments

ghost picture ghost  Â·  3Comments