instagrambot / docs Goto Github PK
View Code? Open in Web Editor NEWdocs for Instabot project
Home Page: https://instagrambot.github.io/docs/
docs for Instabot project
Home Page: https://instagrambot.github.io/docs/
I don't want to skip the business accounts while following. How can I do so?
when I log in its say it login form your Instagram is log in from one plus Babai India
I have tried to limit instabot but it doesn't work. ( I use ultimate comand)
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?
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 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}))
for func, arg in tasks_list:
func(**arg)
python 3.9
Code:
from instabot import Bot
bot = Bot()
bot.login(username="username", password="password")
error is: ds_user
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?
Hello i'm using with bot.follow("user_example ")
,
but result does not followed "user_example" in instagram
please guide me
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.