{"action":"created","issue":{"url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1461","repository_url":"https://api.github.com/repos/instabot-py/instabot.py","labels_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1461/labels{/name}","comments_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1461/comments","events_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1461/events","html_url":"https://github.com/instabot-py/instabot.py/issues/1461","id":345519784,"node_id":"MDU6SXNzdWUzNDU1MTk3ODQ=","number":1461,"title":"Error when python example.py","user":{"login":"JonasX01","id":41859008,"node_id":"MDQ6VXNlcjQxODU5MDA4","avatar_url":"https://avatars2.githubusercontent.com/u/41859008?v=4","gravatar_id":"","url":"https://api.github.com/users/JonasX01","html_url":"https://github.com/JonasX01","followers_url":"https://api.github.com/users/JonasX01/followers","following_url":"https://api.github.com/users/JonasX01/following{/other_user}","gists_url":"https://api.github.com/users/JonasX01/gists{/gist_id}","starred_url":"https://api.github.com/users/JonasX01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonasX01/subscriptions","organizations_url":"https://api.github.com/users/JonasX01/orgs","repos_url":"https://api.github.com/users/JonasX01/repos","events_url":"https://api.github.com/users/JonasX01/events{/privacy}","received_events_url":"https://api.github.com/users/JonasX01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-29T10:28:19Z","updated_at":"2018-07-30T09:07:53Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nBefore opening a new issue, please ensure:\r\n- You search for existing bugs/feature requests\r\n- Remove extraneous template details\r\n- Do not prefix title with type of issue (Feature Request, Bug, etc.) The appropriate labels will be added during triage.\r\n- Do not delete any of the template, fill all of it in; even if you think it doesn't apply to your issue.\r\n- If you fail to follow these simple instructions, we will close the ticket.\r\n- [x] This is a checked box. **Do not leave spaces around the `x`!**\r\n-->\r\n\r\nCheck this or we will delete your issue. (fill in the checkbox with an X like so: [x])\r\n- [x] I have searched for other issues with the same problem. (including #1153)\r\n\r\n## Hosting\r\n- [ ] Are you hosting the bot on a VPS or other Cloud hosting?\r\n- [ ] If so; have you tried running the code on your local machine?\r\n\r\n#### Select one:\r\n- [ ] Bug\r\n- [ ] Feature Request\r\n- [x] Technical Help\r\n- [ ] Other\r\n\r\n### Operating System? (include version)\r\n- [ ] MAC\r\n- [x] Windows\r\n- [ ] Linux\r\n- [ ] Android\r\n\r\n## Python Version?\r\n- [ ] 2.x\r\n- [x] 3.x\r\n\r\n## Description of your issue\r\nAlways when I try to start the bot (with \"python example.py\" in cmd) i get this message:\r\n29.07.2018_12:15 Instabot v1.2.0 started at 29.07.2018 12:15:\r\n\r\n29.07.2018_12:15 Trying to login as myusername...\r\n\r\nTraceback (most recent call last):\r\n  File \"example.py\", line 52, in <module>\r\n    unfollow_whitelist=['example_user_1', 'example_user_2'])\r\n  File \"C:\\Users\\jonas\\Desktop\\Instagram\\instabot.py-master\\src\\instabot.py\", line 234, in __init__\r\n    self.login()\r\n  File \"C:\\Users\\jonas\\Desktop\\Instagram\\instabot.py-master\\src\\instabot.py\", line 285, in login\r\n    self.s.headers.update({'X-CSRFToken': r.cookies['csrftoken']})\r\n  File \"C:\\Users\\jonas\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\requests\\cookies.py\", line 329, in __getitem__\r\n    return self._find_no_duplicates(name)\r\n  File \"C:\\Users\\jonas\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\requests\\cookies.py\", line 400, in _find_no_duplicates\r\n    raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))\r\nKeyError: \"name='csrftoken', domain=None, path=None\"\r\n\r\n```\r\nInclude the contents of the error.log here (if applicable). < REPLACE THIS TEXT\r\n```\r\n\r\n## Config\r\n\r\n```\r\nInclude the contents of your config here (REMOVE YOUR USERNAME AND PASSWORD!) (if applicable). #!/usr/bin/env python\r\n# -*- coding: utf-8 -*-\r\nimport os\r\nimport time\r\n\r\nfrom src import InstaBot\r\nfrom src.check_status import check_status\r\nfrom src.feed_scanner import feed_scanner\r\nfrom src.follow_protocol import follow_protocol\r\nfrom src.unfollow_protocol import unfollow_protocol\r\n\r\nbot = InstaBot(\r\n    login=\"myusername\",\r\n    password=\"mypassword\",\r\n    like_per_day=629,\r\n    comments_per_day=0,\r\n    tag_list=['follow4follow', 'f4f', 'cute', 'l:212999109'],\r\n    tag_blacklist=['rain', 'thunderstorm'],\r\n    user_blacklist={},\r\n    max_like_for_one_tag=50,\r\n    follow_per_day=300,\r\n    follow_time=1 * 60,\r\n    unfollow_per_day=300,\r\n    unfollow_break_min=15,\r\n    unfollow_break_max=30,\r\n    log_mod=0,\r\n    proxy='',\r\n    # List of list of words, each of which will be used to generate comment\r\n    # For example: \"This shot feels wow!\"\r\n    comment_list=[[\"this\", \"the\", \"your\"],\r\n                  [\"photo\", \"picture\", \"pic\", \"shot\", \"snapshot\"],\r\n                  [\"is\", \"looks\", \"feels\", \"is really\"],\r\n                  [\"great\", \"super\", \"good\", \"very good\", \"good\", \"wow\",\r\n                   \"WOW\", \"cool\", \"GREAT\",\"magnificent\", \"magical\",\r\n                   \"very cool\", \"stylish\", \"beautiful\", \"so beautiful\",\r\n                   \"so stylish\", \"so professional\", \"lovely\",\r\n                   \"so lovely\", \"very lovely\", \"glorious\",\"so glorious\",\r\n                   \"very glorious\", \"adorable\", \"excellent\", \"amazing\"],\r\n                  [\".\", \"..\", \"...\", \"!\", \"!!\", \"!!!\"]],\r\n    # Use unwanted_username_list to block usernames containing a string\r\n    ## Will do partial matches; i.e. 'mozart' will block 'legend_mozart'\r\n    ### 'free_followers' will be blocked because it contains 'free'\r\n    unwanted_username_list=[\r\n        'second', 'stuff', 'art', 'project', 'love', 'life', 'food', 'blog',\r\n        'free', 'keren', 'photo', 'graphy', 'indo', 'travel', 'art', 'shop',\r\n        'store', 'sex', 'toko', 'jual', 'online', 'murah', 'jam', 'kaos',\r\n        'case', 'baju', 'fashion', 'corp', 'tas', 'butik', 'grosir', 'karpet',\r\n        'sosis', 'salon', 'skin', 'care', 'cloth', 'tech', 'rental', 'kamera',\r\n        'beauty', 'express', 'kredit', 'collection', 'impor', 'preloved',\r\n        'follow', 'follower', 'gain', '.id', '_id', 'bags'\r\n    ],\r\n    unfollow_whitelist=['example_user_1', 'example_user_2'])\r\nwhile True:\r\n\r\n    #print(\"# MODE 0 = ORIGINAL MODE BY LEVPASHA\")\r\n    #print(\"## MODE 1 = MODIFIED MODE BY KEMONG\")\r\n    #print(\"### MODE 2 = ORIGINAL MODE + UNFOLLOW WHO DON'T FOLLOW BACK\")\r\n    #print(\"#### MODE 3 = MODIFIED MODE : UNFOLLOW USERS WHO DON'T FOLLOW YOU BASED ON RECENT FEED\")\r\n    #print(\"##### MODE 4 = MODIFIED MODE : FOLLOW USERS BASED ON RECENT FEED ONLY\")\r\n    #print(\"###### MODE 5 = MODIFIED MODE : JUST UNFOLLOW EVERYBODY, EITHER YOUR FOLLOWER OR NOT\")\r\n\r\n    ################################\r\n    ##  WARNING   ###\r\n    ################################\r\n\r\n    # DON'T USE MODE 5 FOR A LONG PERIOD. YOU RISK YOUR ACCOUNT FROM GETTING BANNED\r\n    ## USE MODE 5 IN BURST MODE, USE IT TO UNFOLLOW PEOPLE AS MANY AS YOU WANT IN SHORT TIME PERIOD\r\n\r\n    mode = 2\r\n\r\n    #print(\"You choose mode : %i\" %(mode))\r\n    #print(\"CTRL + C to cancel this operation or wait 30 seconds to start\")\r\n    #time.sleep(30)\r\n\r\n    if mode == 0:\r\n        bot.new_auto_mod()\r\n\r\n    elif mode == 1:\r\n        check_status(bot)\r\n        while bot.self_following - bot.self_follower > 200:\r\n            unfollow_protocol(bot)\r\n            time.sleep(10 * 60)\r\n            check_status(bot)\r\n        while bot.self_following - bot.self_follower < 400:\r\n            while len(bot.user_info_list) < 50:\r\n                feed_scanner(bot)\r\n                time.sleep(5 * 60)\r\n                follow_protocol(bot)\r\n                time.sleep(10 * 60)\r\n                check_status(bot)\r\n\r\n    elif mode == 2:\r\n        bot.bot_mode = 1\r\n        bot.new_auto_mod()\r\n\r\n    elif mode == 3:\r\n        unfollow_protocol(bot)\r\n        time.sleep(10 * 60)\r\n\r\n    elif mode == 4:\r\n        feed_scanner(bot)\r\n        time.sleep(60)\r\n        follow_protocol(bot)\r\n        time.sleep(10 * 60)\r\n\r\n    elif mode == 5:\r\n        bot.bot_mode = 2\r\n        unfollow_protocol(bot)\r\n\r\n    else:\r\n        print(\"Wrong mode!\")\r\n\r\n```\r\n![1](https://user-images.githubusercontent.com/41859008/43365284-ca9516d2-932a-11e8-88dc-40e2ae0c5507.JPG)\r\n"},"comment":{"url":"https://api.github.com/repos/instabot-py/instabot.py/issues/comments/408797767","html_url":"https://github.com/instabot-py/instabot.py/issues/1461#issuecomment-408797767","issue_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1461","id":408797767,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODc5Nzc2Nw==","user":{"login":"Ziiran","id":24782054,"node_id":"MDQ6VXNlcjI0NzgyMDU0","avatar_url":"https://avatars2.githubusercontent.com/u/24782054?v=4","gravatar_id":"","url":"https://api.github.com/users/Ziiran","html_url":"https://github.com/Ziiran","followers_url":"https://api.github.com/users/Ziiran/followers","following_url":"https://api.github.com/users/Ziiran/following{/other_user}","gists_url":"https://api.github.com/users/Ziiran/gists{/gist_id}","starred_url":"https://api.github.com/users/Ziiran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ziiran/subscriptions","organizations_url":"https://api.github.com/users/Ziiran/orgs","repos_url":"https://api.github.com/users/Ziiran/repos","events_url":"https://api.github.com/users/Ziiran/events{/privacy}","received_events_url":"https://api.github.com/users/Ziiran/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T09:07:53Z","updated_at":"2018-07-30T09:07:53Z","author_association":"NONE","body":"same here"}}
{"actor":{"display_login":"Ziiran"}}