{"action":"created","issue":{"url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/3048","repository_url":"https://api.github.com/repos/timgrossmann/InstaPy","labels_url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/3048/labels{/name}","comments_url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/3048/comments","events_url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/3048/events","html_url":"https://github.com/timgrossmann/InstaPy/pull/3048","id":365153981,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MTYxNDE3","number":3048,"title":"Skip Private/Business/No Profile Pic, Min/Max posts","user":{"login":"GabrieleCalarota","id":20482413,"node_id":"MDQ6VXNlcjIwNDgyNDEz","avatar_url":"https://avatars2.githubusercontent.com/u/20482413?v=4","gravatar_id":"","url":"https://api.github.com/users/GabrieleCalarota","html_url":"https://github.com/GabrieleCalarota","followers_url":"https://api.github.com/users/GabrieleCalarota/followers","following_url":"https://api.github.com/users/GabrieleCalarota/following{/other_user}","gists_url":"https://api.github.com/users/GabrieleCalarota/gists{/gist_id}","starred_url":"https://api.github.com/users/GabrieleCalarota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GabrieleCalarota/subscriptions","organizations_url":"https://api.github.com/users/GabrieleCalarota/orgs","repos_url":"https://api.github.com/users/GabrieleCalarota/repos","events_url":"https://api.github.com/users/GabrieleCalarota/events{/privacy}","received_events_url":"https://api.github.com/users/GabrieleCalarota/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2018-09-29T18:04:15Z","updated_at":"2018-10-02T12:34:17Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/timgrossmann/InstaPy/pulls/3048","html_url":"https://github.com/timgrossmann/InstaPy/pull/3048","diff_url":"https://github.com/timgrossmann/InstaPy/pull/3048.diff","patch_url":"https://github.com/timgrossmann/InstaPy/pull/3048.patch"},"body":"#### This is used to skip users with certain condition\r\n```python\r\nsession.set_skip_users(skip_private=True,\r\n                       private_percentage=100,\r\n                       skip_no_profile_pic=False,\r\n                       no_profile_pic_percentage=100,\r\n                       skip_business=False,\r\n                       business_percentage=100,\r\n                       skip_business_categories=[],\r\n                       dont_skip_business_categories=[])\r\n```\r\n##### Skip private account\r\n**This is done by default**\r\n```python\r\nsession.set_skip_users(skip_private=True,\r\n                       private_percentage=100)\r\n```\r\nWill skip users that have private account, even if are followed by running account.\r\nYou can set a percentage of skipping:\r\n    _private_percentage_= 100 always skip private users\r\n    _private_percentage_= 0 never skip private users (so set skip_private=False)\r\n\r\n##### Skip users that don't have profile picture\r\n\r\n```python\r\nsession.set_skip_users(skip_private=True,\r\n                       skip_no_profile_pic=True,\r\n                       no_profile_pic_percentage=100)\r\n```\r\nWill skip users that haven't uploaded yet a profile picture\r\nYou can set a percentage of skipping:\r\n    _no_profile_pic_percentage_= 100 always skip users without profile picture\r\n    _no_profile_pic_percentage_= 0 never skip users without profile picture (so set _skip_no_profile_pic_=False)\r\n\r\n##### Skip users that have business account\r\n\r\n```python\r\nsession.set_skip_users(skip_private=True,\r\n                       skip_no_profile_pic=True,\r\n\t\t               skip_business=True,\r\n\t\t               business_percentage=100)\r\n```\r\nThis will skip all users that have business account activated.\r\nYou can set a percentage of skipping:\r\n    _business_percentage_= 100 always skip business users\r\n    _business_percentage_= 0 never skip business users (so set _skip_business_=False)\r\n\r\n**N.B.:** This _business_percentage_ parameter works only if no _skip_business_categories_ or _dont_skip_business_categories_ are provided!\r\n\r\n###### Skip only users that have certain business account\r\n```python\r\nsession.set_skip_users(skip_private=True,\r\n                       skip_no_profile_pic=True,\r\n\t\t       skip_business=True,\r\n\t\t       skip_business_categories=['Creators & Celebrities'])\r\n```\r\nThis will skip all business accounts that have category in given list\r\n**N.B.** In _skip_business_categories_ you can add more than one category\r\n###### Skip all business accounts, except from list given\r\n```python\r\nsession.set_skip_users(skip_private=True,\r\n                       skip_no_profile_pic=True,\r\n\t\t       skip_business=True,\r\n\t\t       dont_skip_business_categories=['Creators & Celebrities'])\r\n```\r\nThis will skip all business accounts except the ones that have a category that matches one item in the list of _dont_skip_business_categories_\r\n**N.B.** If both _dont_skip_business_categories_ and _skip_business_categories_, InstaPy will skip only business accounts in the list given from _skip_business_categories_."},"comment":{"url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/comments/426256365","html_url":"https://github.com/timgrossmann/InstaPy/pull/3048#issuecomment-426256365","issue_url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/3048","id":426256365,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjI1NjM2NQ==","user":{"login":"Mehran","id":23736885,"node_id":"MDQ6VXNlcjIzNzM2ODg1","avatar_url":"https://avatars3.githubusercontent.com/u/23736885?v=4","gravatar_id":"","url":"https://api.github.com/users/Mehran","html_url":"https://github.com/Mehran","followers_url":"https://api.github.com/users/Mehran/followers","following_url":"https://api.github.com/users/Mehran/following{/other_user}","gists_url":"https://api.github.com/users/Mehran/gists{/gist_id}","starred_url":"https://api.github.com/users/Mehran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mehran/subscriptions","organizations_url":"https://api.github.com/users/Mehran/orgs","repos_url":"https://api.github.com/users/Mehran/repos","events_url":"https://api.github.com/users/Mehran/events{/privacy}","received_events_url":"https://api.github.com/users/Mehran/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T12:34:17Z","updated_at":"2018-10-02T12:34:17Z","author_association":"CONTRIBUTOR","body":"@timgrossmann also Can add skipped if is Verified."}}
{"actor":{"display_login":"Mehran"}}