{"action":"created","issue":{"url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/2926","repository_url":"https://api.github.com/repos/timgrossmann/InstaPy","labels_url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/2926/labels{/name}","comments_url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/2926/comments","events_url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/2926/events","html_url":"https://github.com/timgrossmann/InstaPy/issues/2926","id":360576571,"node_id":"MDU6SXNzdWUzNjA1NzY1NzE=","number":2926,"title":"problem with get_following_status -  follow_button.text always blank","user":{"login":"meinert","id":12375214,"node_id":"MDQ6VXNlcjEyMzc1MjE0","avatar_url":"https://avatars0.githubusercontent.com/u/12375214?v=4","gravatar_id":"","url":"https://api.github.com/users/meinert","html_url":"https://github.com/meinert","followers_url":"https://api.github.com/users/meinert/followers","following_url":"https://api.github.com/users/meinert/following{/other_user}","gists_url":"https://api.github.com/users/meinert/gists{/gist_id}","starred_url":"https://api.github.com/users/meinert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meinert/subscriptions","organizations_url":"https://api.github.com/users/meinert/orgs","repos_url":"https://api.github.com/users/meinert/repos","events_url":"https://api.github.com/users/meinert/events{/privacy}","received_events_url":"https://api.github.com/users/meinert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-09-15T21:14:57Z","updated_at":"2018-09-18T11:18:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Expected Behavior\r\nfollow_button.text should be the same as the seen on the GUI. According to the code \"Following\", \"Follow\" og \"Follow back\"\r\n\r\n## Current Behavior\r\n follow_button.text is always empty resulting in the code trying to find browser.find_element_by_xpath(\"//*[contains(text(), 'Requested')]\") which is not present and thus an exception is thrown.\r\n\r\nWhen browser.find_element_by_xpath(\"//*[contains(text(), 'Requested')]\") is called and the the status acctually is requsted everything works fine.\r\n\r\n## Possible Solution (optional)\r\n\r\n## InstaPy configuration\r\n\r\n```\r\nBASE_DIR = os.path.dirname(os.path.abspath(__file__))\r\n\r\nSettings.log_location = os.path.join(BASE_DIR, 'myLogs')\r\nSettings.database_location = os.path.join(BASE_DIR, 'myLogs', insta_username+'.db')\r\n\r\n# set headless_browser=True if you want to run InstaPy on a server\r\n\r\n# set these in instapy/settings.py if you're locating the\r\n# library in the /usr/lib/pythonX.X/ directory:\r\n#   Settings.database_location = '/path/to/instapy.db'\r\n#   Settings.chromedriver_location = '/path/to/chromedriver'\r\n\r\nsession = InstaPy(username=insta_username,\r\n                  password=insta_password,\r\n                  headless_browser=False,\r\n                  multi_logs=True)\r\n\r\ntry:\r\n    session.login()\r\n\r\n    # settings\r\n    session.set_relationship_bounds(enabled=True,\r\n                                    potency_ratio=-1.0,\r\n                                    delimit_by_numbers=True,\r\n                                    max_followers=4590,\r\n                                    max_following=5555,\r\n                                    min_followers=40,\r\n                                    min_following=50)\r\n    session.set_do_comment(False, percentage=10)\r\n    session.set_do_like(True, percentage=51)\r\n    session.set_dont_include(dont_include)\r\n\r\nsession.unfollow_users(amount=100, InstapyFollowed=(True, \"nonfollowers\"), style=\"RANDOM\", unfollow_after=4 * 24 * 60 * 60,\r\n                               sleep_delay=601)\r\n```"},"comment":{"url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/comments/422354392","html_url":"https://github.com/timgrossmann/InstaPy/issues/2926#issuecomment-422354392","issue_url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/2926","id":422354392,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjM1NDM5Mg==","user":{"login":"uluQulu","id":33269249,"node_id":"MDQ6VXNlcjMzMjY5MjQ5","avatar_url":"https://avatars3.githubusercontent.com/u/33269249?v=4","gravatar_id":"","url":"https://api.github.com/users/uluQulu","html_url":"https://github.com/uluQulu","followers_url":"https://api.github.com/users/uluQulu/followers","following_url":"https://api.github.com/users/uluQulu/following{/other_user}","gists_url":"https://api.github.com/users/uluQulu/gists{/gist_id}","starred_url":"https://api.github.com/users/uluQulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uluQulu/subscriptions","organizations_url":"https://api.github.com/users/uluQulu/orgs","repos_url":"https://api.github.com/users/uluQulu/repos","events_url":"https://api.github.com/users/uluQulu/events{/privacy}","received_events_url":"https://api.github.com/users/uluQulu/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T11:18:43Z","updated_at":"2018-09-18T11:18:43Z","author_association":"COLLABORATOR","body":"You're welcome, @tompicca \r\n>...I often get this error:\r\n\"_Timed out with failure while explicitly waiting until visibility of element located!_\"\r\n\r\nWell, it is a helpful message to increase awareness.\r\n\r\n>...and sometimes:\r\n\"_There is a serious issue: 'not logged in'! ~leaving Unfollow-Users activity._\"\r\n\r\nIt is a serious issue as it says ❗\r\n+ EITHER it really is not logged in > intended behaviour\r\n+ OR it is logged in but some bug > mishebaviour\r\n+ + In case of this misbehavior, if you are sure it is what happening to you, provide full usage information, console traceback, screenshots in full scope to solve that misbehavior.\r\n\r\n>...--- instagram.com ping statistics ---\r\n\r\nIt is pinging the server to check if there is a connectivity between the host and the server.\r\n\r\n>User 'khristy_khristy' has changed username and now is called 'khristina_lorusso_' :S\r\n\r\nNow it can find the users according to their user ID stored in local files ( thanks to @CharlesCCC) in case of they have changed the username from the last time you followed AND then unfollow THAT SAME USER with the new username 😛...\r\n\r\n-----\r\n\r\nCheers 😁\r\n-----"}}
{"actor":{"display_login":"uluQulu"}}