{"action":"created","issue":{"url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/1896","repository_url":"https://api.github.com/repos/timgrossmann/InstaPy","labels_url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/1896/labels{/name}","comments_url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/1896/comments","events_url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/1896/events","html_url":"https://github.com/timgrossmann/InstaPy/issues/1896","id":316568019,"number":1896,"title":"Always get Error \"Too few images, skipping this tag\" RUN with DO Ubuntu 16.04","user":{"login":"solehpolysas","id":16600550,"avatar_url":"https://avatars3.githubusercontent.com/u/16600550?v=4","gravatar_id":"","url":"https://api.github.com/users/solehpolysas","html_url":"https://github.com/solehpolysas","followers_url":"https://api.github.com/users/solehpolysas/followers","following_url":"https://api.github.com/users/solehpolysas/following{/other_user}","gists_url":"https://api.github.com/users/solehpolysas/gists{/gist_id}","starred_url":"https://api.github.com/users/solehpolysas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solehpolysas/subscriptions","organizations_url":"https://api.github.com/users/solehpolysas/orgs","repos_url":"https://api.github.com/users/solehpolysas/repos","events_url":"https://api.github.com/users/solehpolysas/events{/privacy}","received_events_url":"https://api.github.com/users/solehpolysas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-22T10:40:25Z","updated_at":"2018-04-23T06:09:38Z","closed_at":null,"author_association":"NONE","body":"<!-- Is this a Feature Request ? Please, check out our Wiki first https://github.com/timgrossmann/InstaPy/wiki -->\r\n## Expected Behavior\r\nINFO [2018-04-22 17:05:05] [user]  Session started - 2018-04-22 17:05:05\r\nWARNING [2018-04-22 17:05:05] [user]  Sorry, Record Activity is not working on Windows. We're working to fix this soon!\r\nINFO [2018-04-22 17:05:36] [user]  Logged in successfully!\r\nINFO [2018-04-22 17:05:38] [user]  Tag [1/11]\r\nINFO [2018-04-22 17:05:38] [user]  --> b'TAG1'\r\nINFO [2018-04-22 17:05:46] [user]  [1/6]\r\nINFO [2018-04-22 17:05:46] [user]  https://www.instagram.com/p/Bh3fXDngfE4/?tagged=TAG1\r\nINFO [2018-04-22 17:05:50] [user]  Image from: b'Example'\r\nINFO [2018-04-22 17:05:55] [user]  Number of Followers: 6319\r\nINFO [2018-04-22 17:05:55] [user]  Link: b'https://www.instagram.com/p/Bh3fXDngfE4/?tagged=TAG1'\r\nINFO [2018-04-22 17:05:55] [user]  Description: b'Example'\r\nINFO [2018-04-22 17:05:57] [user]  --> Image Liked!\r\nINFO [2018-04-22 17:06:00] [user]  --> Not commented\r\nINFO [2018-04-22 17:06:03] [user]  --> Now following\r\nINFO [2018-04-22 17:06:06] [user]  [2/6]\r\nINFO [2018-04-22 17:06:06] [user]  https://www.instagram.com/p/Bh3fMa1gbZw/?tagged=TAG1\r\nINFO [2018-04-22 17:06:09] [user]  Image from: b'Example'\r\nINFO [2018-04-22 17:06:14] [user]  Number of Followers: 5169\r\nINFO [2018-04-22 17:06:14] [user]  Link: b'https://www.instagram.com/p/Bh3fMa1gbZw/?tagged=TAG1'\r\nINFO [2018-04-22 17:06:14] [user]  Description: b'Example'\r\nINFO [2018-04-22 17:06:16] [user]  --> Image Liked!\r\nINFO [2018-04-22 17:06:18] [user]  --> Not commented\r\nINFO [2018-04-22 17:06:21] [user]  --> Now following\r\nINFO [2018-04-22 17:06:25] [user]  [3/6]\r\nINFO [2018-04-22 17:06:25] [user]  https://www.instagram.com/p/Bh3fMBcl_ZJ/?tagged=TAG1\r\nINFO [2018-04-22 17:06:28] [user]  Image from: b'Example'\r\nINFO [2018-04-22 17:06:33] [user]  Number of Followers: 115\r\nINFO [2018-04-22 17:06:33] [user]  Link: b'https://www.instagram.com/p/Bh3fMBcl_ZJ/?tagged=TAG1'\r\nINFO [2018-04-22 17:06:33] [user]  Description: b'Example'\r\nINFO [2018-04-22 17:06:35] [user]  --> Image Liked!\r\nINFO [2018-04-22 17:06:37] [user]  --> Not commented\r\nINFO [2018-04-22 17:06:40] [user]  --> Now following\r\n\r\nThis is the result for the same script i run but at my home in windows 10.\r\n\r\n## Current Behavior\r\nINFO [2018-04-22 17:56:33] [user]  Session started - 2018-04-22 17:56:33\r\nINFO [2018-04-22 17:57:01] [user]  Logged in successfully!\r\nINFO [2018-04-22 17:57:02] [user]  Tag [1/11]\r\nINFO [2018-04-22 17:57:02] [user]  --> b'TAG1'\r\nERROR [2018-04-22 17:57:33] [user]  Too few images, skipping this tag\r\nINFO [2018-04-22 17:57:33] [user]  Tag [2/11]\r\nINFO [2018-04-22 17:57:33] [user]  --> b'TAG2'\r\nERROR [2018-04-22 17:58:02] [user]  Too few images, skipping this tag\r\nINFO [2018-04-22 17:58:02] [user]  Tag [3/11]\r\nINFO [2018-04-22 17:58:02] [user]  --> b'TAG3'\r\n\r\nThis happened when run at Digitalocean Ubuntu 16.04.\r\n\r\nThe script RUN, but it always skip. It's IP softban? Or Bugs? Please anyone facing the same issue?.\r\n\r\n## InstaPy configuration\r\nimport logging, threading, time, json, datetime, random, sys, os\r\n\r\nfrom tempfile import gettempdir\r\nfrom selenium.common.exceptions import NoSuchElementException\r\nfrom instapy import InstaPy\r\nfrom configparser import SafeConfigParser\r\nfrom pprint import pprint\r\n\r\n    #Login Instagram : Username & Password\r\ninsta_username = 'USERNAME'\r\ninsta_password = 'PASSWORD'\r\n\r\nsession = InstaPy(username=insta_username,\r\n                  password=insta_password,\r\n                  headless_browser=True,                  \r\n                  multi_logs=True)\r\n\r\ntry:\r\n    session.login()\r\n\r\n    ###########\r\n    # Setting #\r\n    ###########\r\n    \r\n    # Set AutoFollow 75%~85% From Liked Media,\r\n    # Only Follow once if already unfollow user\r\n    session.set_do_follow(enabled=True, percentage=random.randint(75,85), times=1)\r\n    \r\n    # Set Limit for every user to Like Media or Follow\r\n    session.set_upper_follower_count(limit = 9889)\r\n    session.set_lower_follower_count(limit = 100)\r\n   \r\n    ###########\r\n    # Action  #\r\n    ###########\r\n    \r\n    # LIKE & FOLLOW\r\n    # Target by TAG\r\n    targetTAG = []\r\n    with open('resources/targetTAG.txt') as f:\r\n            for line in f:\r\n                targetTAG.append(line.strip(\"\\n\").replace('#',''))\r\n    random.shuffle(targetTAG)                \r\n    session.like_by_tags(targetTAG, amount=random.randint(3,7), media=None)\r\n\r\nexcept Exception as exc:\r\n    # if changes to IG layout, upload the file to help us locate the change\r\n    if isinstance(exc, NoSuchElementException):\r\n        file_path = os.path.join(gettempdir(), '{}.html'.format(time.strftime('%Y%m%d-%H%M%S')))\r\n        with open(file_path, 'wb') as fp:\r\n            fp.write(session.browser.page_source.encode('utf8'))\r\n        print('{0}\\nIf raising an issue, please also upload the file located at:\\n{1}\\n{0}'.format(\r\n            '*' * 70, file_path))\r\n    # full stacktrace when raising Github issue\r\n    raise\r\n\r\nfinally:\r\n    # end the bot session\r\n    session.end()\r\n"},"comment":{"url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/comments/383464942","html_url":"https://github.com/timgrossmann/InstaPy/issues/1896#issuecomment-383464942","issue_url":"https://api.github.com/repos/timgrossmann/InstaPy/issues/1896","id":383464942,"user":{"login":"solehpolysas","id":16600550,"avatar_url":"https://avatars3.githubusercontent.com/u/16600550?v=4","gravatar_id":"","url":"https://api.github.com/users/solehpolysas","html_url":"https://github.com/solehpolysas","followers_url":"https://api.github.com/users/solehpolysas/followers","following_url":"https://api.github.com/users/solehpolysas/following{/other_user}","gists_url":"https://api.github.com/users/solehpolysas/gists{/gist_id}","starred_url":"https://api.github.com/users/solehpolysas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solehpolysas/subscriptions","organizations_url":"https://api.github.com/users/solehpolysas/orgs","repos_url":"https://api.github.com/users/solehpolysas/repos","events_url":"https://api.github.com/users/solehpolysas/events{/privacy}","received_events_url":"https://api.github.com/users/solehpolysas/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T06:09:37Z","updated_at":"2018-04-23T06:09:37Z","author_association":"NONE","body":"@sionking \r\n1. No. This is old user with 800~900 Followers\r\n2. Yes, this tag will have top post\r\n\r\nThe situation is, im using the same script at Windows & Ubuntu.\r\nWhen run at windows (HOME IP), all working fine.\r\nThis is just happened when run at DO Ubuntu (after 2 days run this script with cron enable)\r\n\r\nMy script will do:\r\nLike 15~20 per hour\r\nFollow 75% ~ 85% only from like media\r\n& Follow User Follower 15~30 per hour.\r\nThis 3 action will execute every hour. Normally will finish after run 15min ~ 25min (base on random pick).\r\nSo with CRON enable, script will run every hours (NOT 24/7), just run at specific hours base on my country working hours only.\r\n\r\nThats all."}}
{"actor":{"display_login":"solehpolysas"}}