mpawlak2 / instalike-instagram-bot Goto Github PK
View Code? Open in Web Editor NEWautomate instagram activities using instagram bot - like follow/unfollow comment; python requests lib
Home Page: https://github.com/mpawlak2/instalike-instagram-bot
automate instagram activities using instagram bot - like follow/unfollow comment; python requests lib
Home Page: https://github.com/mpawlak2/instalike-instagram-bot
Hey,
Sometimes, after running for a while (day or two) program encounters an exception:
#######################################
----------------LIKES------------------
total time: 2352s
likes: 595
failed likes: 8
estimated likes per hour: 923
next like in: 62s
photos to like: 4
#######################################
--------------ACTIVITIES---------------
received follows: 6
received likes: 73
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 385, in _make_request
httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 578, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 387, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1174, in getresponse
response.begin()
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 282, in begin
version, status, reason = self._read_status()
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 251, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/requests/adapters.py", line 403, in send
timeout=timeout
File "/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 623, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/util/retry.py", line 255, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/packages/six.py", line 309, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 578, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 387, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1174, in getresponse
response.begin()
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 282, in begin
version, status, reason = self._read_status()
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 251, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
requests.packages.urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 9, in <module>
main()
File "main.py", line 5, in main
bot.start()
File "/Users/Inlife/Projects/instalike/instabot.py", line 61, in start
self.like_bot.act()
File "/Users/Inlife/Projects/instalike/instalike.py", line 54, in act
self.like(photo)
File "/Users/Inlife/Projects/instalike/instalike.py", line 32, in like
response = self.operation.like(photo.id)
File "/Users/Inlife/Projects/instalike/operation.py", line 94, in like
return self.session.post(self.like_url_tmpl.format(photo_id), headers = self.ajx_headers, cookies = self.cookies)
File "/usr/local/lib/python3.5/site-packages/requests/sessions.py", line 518, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.5/site-packages/requests/sessions.py", line 475, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.5/site-packages/requests/sessions.py", line 585, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.5/site-packages/requests/adapters.py", line 453, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))
Maybe this issue can be fixed, and might help someone :3
Thank you!
Traceback (most recent call last):
File "main.py", line 10, in <module>
main()
File "main.py", line 6, in main
bot.start()
File "/Users/danny/instalike-instagram-bot/instabot.py", line 78, in start
self.follow_bot.act()
File "/Users/danny/instalike-instagram-bot/instafollow.py", line 79, in act
self.follow()
File "/Users/danny/instalike-instagram-bot/instafollow.py", line 52, in follow
if (response.status_code != 200):
UnboundLocalError: local variable 'response' referenced before assignment
Due to recent instagram changes , am unable to scrape feed with the bot ,,,, i keep getting this error
File
"/home/shoutoutsng/instabot.py", line 76, in start
self.like_bot.act()
File "/home/shoutoutsng/instalike.py", line 54, in act
media = self.content_manager.get_next_media()
File "/home/shoutoutsng/content.py", line 34, in get_next_media
if(not self.scrap_media()):
File "/home/shoutoutsng/content.py", line 83, in scrap_media
response = self.scrap_feed_media() or response
File "/home/shoutoutsng/content.py", line 101, in scrap_feed_media
feed_media = self.operation.get_feed_media()
File "/home/shoutoutsng/operation.py", line 167, in get_feed_media
json_feed = json.loads(feed_media.group(1))['entry_data']['FeedPage'][0]['feed']['media']['nodes']
KeyError: 'feed'`
I only get 25 rows in the db tables. is there a limit, or what's going on?
Getting error:
MacBook-Pro-Artur:instalike-instagram-bot mico$ createdb instalike
MacBook-Pro-Artur:instalike-instagram-bot mico$ psql -d instalike < db_setup.sql
CREATE TABLE
CREATE TABLE
CREATE TABLE
INSERT 0 6
CREATE TABLE
CREATE TABLE
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE TABLE
CREATE FUNCTION
CREATE TABLE
CREATE FUNCTION
CREATE TABLE
CREATE FUNCTION
CREATE TABLE
CREATE FUNCTION
CREATE FUNCTION
ALTER FUNCTION
ERROR: syntax error at or near "on"
LINE 14: on conflict(user_id) do nothing;
^
ERROR: function public.update_unfollow_queue(integer) does not exist
CREATE FUNCTION
MacBook-Pro-Artur:instalike-instagram-bot mico$
Hey,
I just wanted to sure, is the db_setup.sql
is up to date.
Because on fresh clone+db setup, right just after launch i ran onto this problem everytime:
postgresql.exceptions.UndefinedTableError: relation "unfollow_queue" does not exist
With enabled database management, of course.
Is it possible to be outdated, or am i doing something wrong?
Thank you! ๐
P.S. using this awesome thing almost everyday, niceee! ๐ ๐ ๐
Hello, dear!
I am trying to use your script but an error occurs . Please see the text in bold.
Thank you!
credentials are: "--------" with password "---------"
time periods, total: 360 minutes
from 2016-06-26 20:13:00 to 2016-06-26 20:43:00, minutes: 30.0, active: False, wait for 4 hours
from 2016-06-26 15:31:00 to 2016-06-26 17:23:00, minutes: 112.0, active: True, wait for -1 hours
trying to log in ...
logged in
getting photos from tag LojasPanier...
getting photos from tag penteadododia...
getting photos from tag keune...
getting photos from tag loreal...
Traceback (most recent call last):
File "main.py", line 9, in
main()
File "main.py", line 5, in main
bot.start()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instabot.py", line 61, in start
self.like_bot.act()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instalike.py", line 43, in act
self.instagrams = self.content_manager.get_photos()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\content.py", line 39, in get_photos
self.repository.merge_photo(photo_instance)
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\database.py", line 77, in merge_photo
self.data_source.execute(sql_query)
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\database.py", line 12, in execute
self.connection.execute(sql_query)
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 2306, in execute
self.pq_complete()
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 2604, in pq_complete
self.typio.raise_error(x.error_message, cause = getattr(x, 'exception', None))
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 541, in raise_error
self.raise_server_error(error_message, **kw)
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 532, in raise_server_error
raise server_error
postgresql.exceptions.NumericRangeError: integer out of range
CODE: 22003
LOCATION: File 'int8.c', line 1298, in int84 from SERVER
CONTEXT: SQL statement "insert into photos (id, code, width, height, is_ad, likes_count, is_video, display_src, loc)
values (_id, _code, _width, _height, _is_ad, _likes_count, _is_video, _display_src, _location)"
PL/pgSQL function merge_photo(bigint,integer,integer,character varying,boolean,integer,boolean,boolean,character varying,character varying) line 14 at SQL statement
CONNECTION: [idle]
client_address: ::1/128
client_port: 52621
version: PostgreSQL 9.6beta1, compiled by Visual C++ build 1800, 64-bit
CONNECTOR: [Host] pq://postgres:@localhost:5432/instamanager
category: None
DRIVER: postgresql.driver.pq3.Driver*
can this like the photos in my instagram feed
Hi there,
I've been looking for such a project to do myself and fortunately, after a bit of searching, I have found this project. Though not complete, I am willing to help take this project to higher levels and I have many ideas to incorporate such as following the followers of specific users and ...
Unfortunately, I can see there is a lack of engagement with this project as you are working by your own and if possible, I'd like to help.
Please reply here and I'll start working on an idea or an issue. If also possible, please provide a method for me to contact you in real time such as a chat or so. I'm reachable also in Telegram: here
Thanks in advance and I must say, brilliant work so far though I'd think it'd be best if we worked together.
\instalike-instagram-bot-master>py main.py
Using default.cfg file.
WARNING! bot is working whole time, be careful because leaving it running for too long time may result in blocked account.
working whole time.
Trying to log in ...
Logged in
scrapping & validating media...
tag media...
Traceback (most recent call last):
File "main.py", line 10, in
main()
File "main.py", line 6, in main
bot.start()
File "C:\Users\Robin DebNath\Downloads\instalike-instagram-bot-master\instalike-instagram-bot-master\instabot.py", line 75, in start
self.like_bot.act()
File "C:\Users\Robin DebNath\Downloads\instalike-instagram-bot-master\instalike-instagram-bot-master\instalike.py", line 52, in act
media = self.content_manager.get_next_media()
File "C:\Users\Robin DebNath\Downloads\instalike-instagram-bot-master\instalike-instagram-bot-master\content.py", line 34, in get_next_media
if(not self.scrap_media()):
File "C:\Users\Robin DebNath\Downloads\instalike-instagram-bot-master\instalike-instagram-bot-master\content.py", line 84, in scrap_media
response = self.scrap_tag_media() or response
File "C:\Users\Robin DebNath\Downloads\instalike-instagram-bot-master\instalike-instagram-bot-master\content.py", line 94, in scrap_tag_media
tag_media = self.operation.get_photos_by_tag(bytag)
File "C:\Users\Robin DebNath\Downloads\instalike-instagram-bot-master\instalike-instagram-bot-master\operation.py", line 158, in get_photos_by_tag
return json.loads(response.content.decode('utf-8'))['tag']['media']['nodes']
KeyError: 'tag'
Traceback (most recent call last):
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\main.py", line 9, in
main()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\main.py", line 5, in main
bot.start()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instabot.py", line 65, in start
self.activity_bot.act()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instaactivity.py", line 38, in act
self.parse_activities()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instaactivity.py", line 34, in parse_activities
self.repository.register_activity(activity)
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\database.py", line 95, in register_activity
self.data_source.execute(sql_query)
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\database.py", line 12, in execute
self.connection.execute(sql_query)
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 2306, in execute
self._pq_complete()
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 2604, in _pq_complete
self.typio.raise_error(x.error_message, cause = getattr(x, 'exception', None))
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 541, in raise_error
self.raise_server_error(error_message, **kw)
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 532, in raise_server_error
raise server_error
postgresql.exceptions.UndefinedFunctionError: function register_activity(_type => integer, _user_id => integer, _activity_time => numeric) does not exist
CODE: 42883
LOCATION: File 'parse_func.c', line 523, in ParseFuncOrColumn from SERVER
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
POSITION: 8
CONNECTION: [idle]
client_address: ::1/128
client_port: 50604
version: PostgreSQL 9.6beta1, compiled by Visual C++ build 1800, 64-bit
CONNECTOR: [Host] pq://postgres:***@localhost:5432/instamanager
category: None
DRIVER: postgresql.driver.pq3.Driver
could not get valid users.
Error getting users.
Traceback (most recent call last):
File "main.py", line 10, in <module>
main()
File "main.py", line 6, in main
bot.start()
File "/Users/danny/Downloads/instalike-instagram-bot/instabot.py", line 78, in start
self.follow_bot.act()
File "/Users/danny/Downloads/instalike-instagram-bot/instafollow.py", line 79, in act
self.follow()
File "/Users/danny/Downloads/instalike-instagram-bot/instafollow.py", line 52, in follow
if (response.status_code != 200):
UnboundLocalError: local variable 'response' referenced before assignment
I think something changed at Instagram.
It's not working anymore.
This is what I get:
Trying to log in ... Logged in scrapping & validating media... tag media... Traceback (most recent call last): File "main.py", line 10, in <module> main() File "main.py", line 6, in main bot.start() File "/home/pi/Projects/instalike-instagram-bot/instabot.py", line 75, in start self.like_bot.act() File "/home/pi/Projects/instalike-instagram-bot/instalike.py", line 52, in act media = self.content_manager.get_next_media() File "/home/pi/Projects/instalike-instagram-bot/content.py", line 34, in get_next_media if(not self.scrap_media()): File "/home/pi/Projects/instalike-instagram-bot/content.py", line 84, in scrap_media response = self.scrap_tag_media() or response File "/home/pi/Projects/instalike-instagram-bot/content.py", line 96, in scrap_tag_media return self.process_media(tag_media) File "/home/pi/Projects/instalike-instagram-bot/content.py", line 112, in process_media media_details = self.operation.get_photo_details(media['code']) File "/home/pi/Projects/instalike-instagram-bot/operation.py", line 196, in get_photo_details return json.loads(response.content.decode('utf-8'))['media'] KeyError: 'media'
Try to use non ascii (cyrillic) letters in tag, obtain the following exception:
Using default.cfg file.
WARNING! bot is working whole time, be careful because leaving it running for too long time may result in blocked account.
working whole time.
trying to log in ...
logged in
Traceback (most recent call last):
File "main.py", line 9, in <module>
main()
File "main.py", line 5, in main
bot.start()
File "C:\Andrey\instalike-instagram-bot-master\instabot.py", line 75, in start
self.like_bot.act()
File "C:\Andrey\instalike-instagram-bot-master\instalike.py", line 47, in act
self.instagrams = self.content_manager.get_photos()
File "C:\Andrey\instalike-instagram-bot-master\content.py", line 29, in get_photos
print('getting photos from tag {0}...'.format(tag))
File "c:\Python35\lib\encodings\cp866.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0455' in position 27: character maps to <undefined>
Trying to log in ... Traceback (most recent call last): File "main.py", line 10, in <module> main() File "main.py", line 6, in main bot.start() File "/home/pi/Projects/scrise_bot/instabot.py", line 61, in start while(not self.log_in()): File "/home/pi/Projects/scrise_bot/instabot.py", line 45, in log_in response = self.operation.log_in(self.configuration.instagram_username, self.configuration.instagram_password) File "/home/pi/Projects/scrise_bot/operation.py", line 46, in log_in self.prepare_request(response) File "/home/pi/Projects/scrise_bot/operation.py", line 99, in prepare_request 'x-csrftoken': request_response.cookies['csrftoken'], File "/usr/lib/python3/dist-packages/requests/cookies.py", line 276, in __getitem__ return self._find_no_duplicates(name) File "/usr/lib/python3/dist-packages/requests/cookies.py", line 331, in _find_no_duplicates raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path)) KeyError: "name='csrftoken', domain=None, path=None"
Hi, bro!
Please, look this error:
getting photos from tag loreal...
getting photos from tag laahsenna...
getting photos from tag makingoff...
getting photos from tag diadanoiva...
getting photos from tag wakeupandmakeup...
getting photos from tag hairdo...
getting photos from tag remakeup...
getting photos from tag cabelos_etc...
getting photos from tag universodamaquiagem_oficial...
Traceback (most recent call last):
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\main.py", line 9, in
main()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\main.py", line 5, in main
bot.start()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instabot.py", line 61, in start
self.like_bot.act()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instalike.py", line 43, in act
self.instagrams = self.content_manager.get_photos()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\content.py", line 45, in get_photos
self.repository.merge_user(user_instance)
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\database.py", line 60, in merge_user
self.data_source.execute(sql_query)
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\database.py", line 12, in execute
self.connection.execute(sql_query)
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 2306, in execute
self._pq_complete()
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 2604, in _pq_complete
self.typio.raise_error(x.error_message, cause = getattr(x, 'exception', None))
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 541, in raise_error
self.raise_server_error(error_message, **kw)
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 532, in raise_server_error
raise server_error
postgresql.exceptions.UndefinedColumnError: column "biography" does not exist
CODE: 42703
LOCATION: File 'parse_relation.c', line 3090, in errorMissingColumn from SERVER
CONTEXT: PL/pgSQL function merge_user(bigint,character varying,boolean,integer,integer,character varying,boolean,character varying,boolean,character varying,integer,boolean,boolean,boolean,character varying) line 16 at SQL statement
HINT: There is a column named "biography" in table "users", but it cannot be referenced from this part of the query.
INTERNAL_POSITION: 476
**INTERNAL_QUERY: insert into users (id, username, has_blocked_viewer, follows_count, followed_by_count, external_url, follows_viewer, profile_pic_url, is_private,
full_name, posts_count, blocked_by_viewer, followed_by_viewer, is_verified, biography)
values (_id, _username, _has_blocked_viewer, _follows_count, _followed_by_count, _external_url, _follows_viewer, _profile_pic_url, _is_private,
_full_name, _posts_count, _blocked_by_viewer, _followed_by_viewer, _is_verified, biography)**
CONNECTION: [idle]
client_address: ::1/128
client_port: 50197
version: PostgreSQL 9.6beta1, compiled by Visual C++ build 1800, 64-bit
CONNECTOR: [Host] pq://postgres:***@localhost:5432/instamanager
category: None
DRIVER: postgresql.driver.pq3.Driver
Im trying to run this command can someone help
Can i use it for a whole day
Traceback (most recent call last):
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\main.py", line 9, in
main()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\main.py", line 5, in main
bot.start()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instabot.py", line 61, in start
self.like_bot.act()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instalike.py", line 54, in act
self.like(photo)
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instalike.py", line 33, in like
self.repository.like(photo, response.status_code)
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\database.py", line 83, in like
self.data_source.execute(sql_query)
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\database.py", line 12, in execute
self.connection.execute(sql_query)
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 2306, in execute
self._pq_complete()
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 2604, in _pq_complete
self.typio.raise_error(x.error_message, cause = getattr(x, 'exception', None))
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 541, in raise_error
self.raise_server_error(error_message, **kw)
File "C:\Users\APF\AppData\Local\Programs\Python\Python35-32\lib\site-packages\postgresql\driver\pq3.py", line 532, in raise_server_error
raise server_error
postgresql.exceptions.UndefinedFunctionError: function like_photo(_photo_id => bigint, _status_code => integer) does not exist
CODE: 42883
LOCATION: File 'parse_func.c', line 523, in ParseFuncOrColumn from SERVER
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
POSITION: 8
CONNECTION: [idle]
client_address: ::1/128
client_port: 50847
version: PostgreSQL 9.6beta1, compiled by Visual C++ build 1800, 64-bit
CONNECTOR: [Host] pq://postgres:***@localhost:5432/instamanager
category: None
DRIVER: postgresql.driver.pq3.Driver
It would be great if there would be a possibility to unlike all of the photos which were liked by the bot. In my opinion it wouldn't even be necessary to save them in a database (like the automated unfollow). It would be enough if I could just delete all likes on photos with a specific hashtag after I finished using the bot.
This would make your bot much more valuable for all the users who still want to get proper suggestions from Instagram based on their own likes.
Thanks for your work so far! It is really appreciated
Why do I get "failed likes: 17" ?
No successful like yet. Have I missed anything?
Trying to log in ... Logged in scrapping & validating media... tag media... Traceback (most recent call last): File "main.py", line 10, in <module> main() File "main.py", line 6, in main bot.start() File "/home/pi/Projects/onfilm_bot/instabot.py", line 80, in start self.like_bot.act() File "/home/pi/Projects/onfilm_bot/instalike.py", line 52, in act media = self.content_manager.get_next_media() File "/home/pi/Projects/onfilm_bot/content.py", line 34, in get_next_media if(not self.scrap_media()): File "/home/pi/Projects/onfilm_bot/content.py", line 84, in scrap_media response = self.scrap_tag_media() or response File "/home/pi/Projects/onfilm_bot/content.py", line 94, in scrap_tag_media tag_media = self.operation.get_photos_by_tag(bytag) File "/home/pi/Projects/onfilm_bot/operation.py", line 158, in get_photos_by_tag return json.loads(response.content.decode('utf-8'))['tag']['media']['nodes'] KeyError: 'tag'
Traceback (most recent call last):
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\main.py", line 9, in
main()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\main.py", line 5, in main
bot.start()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instabot.py", line 71, in start
self.follow_bot.act()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instafollow.py", line 75, in act
self.unfollow()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instafollow.py", line 59, in unfollow
self.user_ids_to_unfollow = self.content_manager.get_users_to_unfollow()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\content.py", line 62, in get_users_to_unfollow
response = self.repository.get_users_to_unfollow()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\database.py", line 108, in get_users_to_unfollow
return proc()
TypeError: 'str' object is not callable
i got an error while trying to login
i ran with with the python34 module
my credentials are correct
Using default.cfg file.
WARNING! bot is working whole time, be careful because leaving it running for too long time may result in blocked account.
working whole time.
Trying to log in ...
Check credentials, also try to log in to your account manually to check if everything is fine then retry.
Oops! could not log in.
failed to log in wait for 5min
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
RESTART: D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\main.py
Traceback (most recent call last):
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\main.py", line 9, in
main()
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\main.py", line 4, in main
bot = instabot.InstaBot('', '')
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\instabot.py", line 19, in init
self.content_manager = content.ContentManager(self.operation, self.repository, self.configuration)
File "D:\Alisson documentos\Scripts\Python\instalike-instagram-bot-master\content.py", line 12, in init
self.spam_validator = spam.SpamDetector(self.operation, self.repository)
TypeError: init() missing 1 required positional argument: 'banned_tags'
Post your ideas here. New functionality, enhancements, anything goes!
I will start: add proxy support.
Using default.cfg file.
Traceback (most recent call last):
File "/home/thelordgermany/bot/main.py", line 10, in
main()
File "/home/thelordgermany/bot/main.py", line 6, in main
bot.start()
File "/home/thelordgermany/bot/instabot.py", line 58, in start
if(not self.initialize()):
File "/home/thelordgermany/bot/instabot.py", line 18, in initialize
if(not self.configuration.initialize()):
File "/home/thelordgermany/bot/configuration.py", line 50, in initialize
instafollow = self.config['INSTAFOLLOW']
File "/usr/lib/python3.5/configparser.py", line 956, in getitem
raise KeyError(key)
KeyError: 'INSTAFOLLOW'
Hi!
How do I get the bot to follow the followers of a specific user?
Thank you very much
I have installed the Python program to run python scripts
but it doesnt work...
It does work on PC but not Raspberry pi :(
Just decided to try out this code but it seems the likes are failing quickly, my config is very soft and do not do a lot of actions just some likes here and there.
CONFIG
`# By using this bot you take sole responsibility for all possible penalties Instagram may put on your account.
[BOT]
WorkWholeTime = True
BotWorkAtDay = True
StopAfterNumerOfMinutes = 0
WorkHoursPerDay = 5
StartHour = 10
EndHour = 23
LogDBOperations = False
InstaLike = True
InstaFollow = False
InstaComment = False
InstaMessage = False
[NOTIFICATIONS]
EnableEmailSummaryNotifications = False
SendAttachment = False
EmailAdress = [email protected]
EmailServerAddress = [email protected]
EmailServerPassword = mypassword
[BAN]
DoNotGetBanned = False
[INSTAGRAM]
Username = username
Password = password
[DATABASE]
UseDatabase = False
DatabaseName = dbname
UserName = dbuser
Password = dbpass
Address = dbaddress
LogOperations = False
[INSTALIKE]
MaxLikesPerHour = 30
LikeFeedMedia = False
Tags = tags, tags, tags, tags
[INSTAFOLLOW]
MaxFollowsPerHour = 8
MaxUnfollowsPerHour = 2
UnfollowUsers = False
UnfollowAfterNoOfDays = 6
`
LOGS
`#######################################
----------------LIKES------------------
total time: 1896s
likes: 77
failed likes: 59
estimated likes per hour: 258
next like in: 158s
photos to like: 3
#######################################
--------------ACTIVITIES---------------
received follows: 0
received likes: 0
#######################################
--------------ACTIVITIES---------------
received follows: 0
received likes: 0
#######################################
----------------LIKES------------------
total time: 2055s
likes: 77
failed likes: 60
estimated likes per hour: 240
next like in: 68s
photos to like: 2
#######################################
----------------LIKES------------------
total time: 2123s
likes: 77
failed likes: 61
estimated likes per hour: 233
next like in: 133s
photos to like: 1
#######################################
--------------ACTIVITIES---------------
received follows: 0
received likes: 0
#######################################
--------------ACTIVITIES---------------
received follows: 0
received likes: 0
#######################################
----------------LIKES------------------
total time: 2256s
likes: 77
failed likes: 62
estimated likes per hour: 221
next like in: 146s
photos to like: 0
`
Hey,
How to get or create a database of all my followings?
found this, works great
python3 main.py -u xxx -p xxx
Using default.cfg file.
WARNING! bot is working whole time, be careful because leaving it running for too long time may result in blocked account.
working whole time.
Trying to log in ...
code: 400, could not POST: https://www.instagram.com/accounts/login/?force_classic_login&hl=pl
Oops! could not log in.
failed to log in wait for 5min
Trying to log in ...
code: 400, could not POST: https://www.instagram.com/accounts/login/?force_classic_login&hl=pl
Oops! could not log in.
failed to log in wait for 5min
Trying to log in ...
code: 400, could not POST: https://www.instagram.com/accounts/login/?force_classic_login&hl=pl
Oops! could not log in.
failed to log in wait for 5min
then i get this on mah phone
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.