Giter Site home page Giter Site logo

docs's People

Contributors

cs801458j avatar cthulhu-irl avatar damirqa avatar davoxpa avatar francam94 avatar ivanychev avatar jbarcelonap avatar kintaro1981 avatar maxkrivich avatar mtv890 avatar ohld avatar order4adwriter avatar sudoguy avatar voron434 avatar woollover avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

Limits

I have tried to limit instabot but it doesn't work. ( I use ultimate comand)

  1. How to limit how many medias to like per user?
    .
    .
    .
    Thanks

settings query - pls help!

Hi guys- just trying to setup the instagrambot on my raspberry pi. Using the ultimate scheduled option I got the following error;

`2018-06-24 15:26:48,960 - INFO - Logged-in successfully as 'xxxx' using the cookie!
2018-06-24 15:26:48,964 - INFO - ULTIMATE script. Safe to run 24/7!
2018-06-24 15:28:00,089 - INFO - Follow followers of: 6377497118
2018-06-24 15:28:00,852 - ERROR - Request returns 404 error!
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "ultimate.py", line 48, in follow_followers
    bot.follow_followers(random_user_file.random(), nfollows=config.NUMBER_OF_FOLLOWERS_TO_FOLLOW)
  File "/home/pi/Projects/instabot3/instabot/examples/ultimate_schedule/../../instabot/bot/bot.py", line 472, in follow_followers
    return follow_followers(self, user_id, nfollows)
  File "/home/pi/Projects/instabot3/instabot/examples/ultimate_schedule/../../instabot/bot/bot_follow.py", line 76, in follow_followers
    followers = self.get_user_followers(user_id, nfollows)
  File "/home/pi/Projects/instabot3/instabot/examples/ultimate_schedule/../../instabot/bot/bot.py", line 357, in get_user_followers
    return get_user_followers(self, user_id, nfollows)
  File "/home/pi/Projects/instabot3/instabot/examples/ultimate_schedule/../../instabot/bot/bot_get.py", line 180, in get_user_followers
    user_id = self.convert_to_user_id(user_id)
  File "/home/pi/Projects/instabot3/instabot/examples/ultimate_schedule/../../instabot/bot/bot.py", line 393, in convert_to_user_id
    return convert_to_user_id(self, usernames)
  File "/home/pi/Projects/instabot3/instabot/examples/ultimate_schedule/../../instabot/bot/bot_get.py", line 275, in convert_to_user_id
    x = self.get_user_id_from_username(x)
  File "/home/pi/Projects/instabot3/instabot/examples/ultimate_schedule/../../instabot/bot/bot.py", line 345, in get_user_id_from_username
    return get_user_id_from_username(self, username)
  File "/home/pi/Projects/instabot3/instabot/examples/ultimate_schedule/../../instabot/bot/bot_get.py", line 153, in get_user_id_from_username
    if "user" in self.api.last_json:
TypeError: argument of type 'NoneType' is not iterable


`

Initially I thought the the user id for 'follow user followers' had to be typed out in its alphabetical format but recieved a similar error, so replaced all the alphabetical ids with their corresponding numerical ids but it looks like I am getting a similar error. Anyone have an idea of whats happening here?

Ultimate.py

Hi, running the example/ultimate/ultimate.py , the script start good, but after a while exit with this error:

USER_NAME: yachts.and.fishin, FOLLOWER: 248, FOLLOWING: 188 | 0/18 [00:00<?, ?it/s]
2018-08-23 22:51:50,140 - INFO - Liking user_yachts.and.fishin's feed:
2018-08-23 22:51:50,406 - INFO - Received 18 medias.
2018-08-23 22:51:50,407 - INFO - After filtration 18 medias left.
2018-08-23 22:51:50,407 - INFO - Going to like 18 medias.
2018-08-23 22:51:50,407 - INFO - Out of likes for today.
2018-08-23 22:52:00,415 - INFO - DONE: Total liked 31 medias.
Exception KeyError: KeyError(<weakref at 0x7fdfd8d7d368; to 'tqdm' at 0x7fdfd8dcb210>,) in <bound method tqdm.del of 0%| | 0/72 [02:40<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfdb54ae90>,) in <bound method tqdm.del of 0%| | 0/82 [04:06<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd9090210>,) in <bound method tqdm.del of 0%| | 0/78 [03:17<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd8fa9150>,) in <bound method tqdm.del of 0%| | 0/77 [02:03<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd8cce5d0>,) in <bound method tqdm.del of 0%| | 0/83 [03:29<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd9090190>,) in <bound method tqdm.del of 0%| | 0/73 [02:52<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd8f1b1d0>,) in <bound method tqdm.del of 0%| | 0/86 [01:51<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd8f4ab50>,) in <bound method tqdm.del of 0%| | 0/18 [00:41<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd8f4a910>,) in <bound method tqdm.del of 0%| | 0/18 [00:27<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd8f4aa90>,) in <bound method tqdm.del of 0%| | 0/18 [00:10<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f150a8; to 'tqdm' at 0x7fdfd8cb9110>,) in <bound method tqdm.del of 0%| | 0/81 [03:41<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f150a8; to 'tqdm' at 0x7fdfd8ed91d0>,) in <bound method tqdm.del of 0%| | 0/81 [01:39<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f15050; to 'tqdm' at 0x7fdfd8de9050>,) in <bound method tqdm.del of 0%| | 0/82 [03:04<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f15998; to 'tqdm' at 0x7fdfe78f5810>,) in <bound method tqdm.del of 0%| | 0/84 [01:26<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f15998; to 'tqdm' at 0x7fdfd8f4af90>,) in <bound method tqdm.del of 0%| | 0/79 [02:15<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f15998; to 'tqdm' at 0x7fdfd8f4ac90>,) in <bound method tqdm.del of 0%| | 0/17 [01:03<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f15998; to 'tqdm' at 0x7fdfd8cb9350>,) in <bound method tqdm.del of 0%| | 0/81 [02:28<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f15998; to 'tqdm' at 0x7fdfd8cce110>,) in <bound method tqdm.del of 0%| | 0/82 [03:54<?, ?it/s]> ignored
2018-08-23 22:52:00,734 - INFO - Bot stopped. Worked: 1:11:30.035810
2018-08-23 22:52:00,734 - INFO - Total follows: 81
2018-08-23 22:52:00,734 - INFO - Total likes: 31
2018-08-23 22:52:00,734 - INFO - Total requests: 1318
[root@botinstagram ultimate]#


ULTIMATE.PY

"""
ULTIMATE SCRIPT

It uses data written in files:
    * follow_followers.txt
    * follow_following.txt
    * like_hashtags.txt
    * like_users.txt
and do the job. This bot can be run 24/7.

"""

import os
import sys

sys.path.append(os.path.join(sys.path[0], '../../'))
from instabot import Bot

bot = Bot(
proxy=None,
max_likes_per_day=30,
max_unlikes_per_day=30,
max_follows_per_day=80,
max_unfollows_per_day=80,
max_comments_per_day=20,
max_likes_to_like=50,
filter_users=True,
filter_business_accounts=False,
filter_verified_accounts=True,
max_followers_to_follow=2000,
min_followers_to_follow=10,
max_following_to_follow=7500,
min_following_to_follow=10,
#max_followers_to_following_ratio=10,
#max_following_to_followers_ratio=2,
max_following_to_block=2000,
min_media_count_to_follow=3,
like_delay=10,
unlike_delay=10,
follow_delay=30,
unfollow_delay=30,
comment_delay=60,

        stop_words=['shop', 'store', 'free'])

bot.login()

print("Current script's schedule:")
follow_followers_list = bot.read_list_from_file("follow_followers.txt")
print("Going to follow followers of:", follow_followers_list)
follow_following_list = bot.read_list_from_file("follow_following.txt")
print("Going to follow following of:", follow_following_list)
like_hashtags_list = bot.read_list_from_file("like_hashtags.txt")
print("Going to like hashtags:", like_hashtags_list)
like_users_list = bot.read_list_from_file("like_users.txt")
print("Going to like users:", like_users_list)

tasks_list = []
for item in follow_followers_list:
tasks_list.append((bot.follow_followers, {'user_id': item, 'nfollows': None}))
for item in follow_following_list:
tasks_list.append((bot.follow_following, {'user_id': item}))
for item in like_hashtags_list:
tasks_list.append((bot.like_hashtag, {'hashtag': item, 'amount': None}))
for item in like_users_list:
tasks_list.append((bot.like_user, {'user_id': item, 'amount': None}))

shuffle(tasks_list)

for func, arg in tasks_list:
func(**arg)

login error

python 3.9
Code:
from instabot import Bot
bot = Bot()
bot.login(username="username", password="password")

error is: ds_user

Is there a way access dm's

Hello contributors, is there a way to access DMS to get media links from the messages sent by a specific person with a user id?

bug

Hello i'm using with bot.follow("user_example "),
but result does not followed "user_example" in instagram

please guide me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.