Code Monkey home page Code Monkey logo

instabot's People

Contributors

erleiuat avatar nickpettican 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

instabot's Issues

ImportError: No module named Arrow

I get this error when trying to run the run "run.py".

I did install Arrow though...
"Successfully installed Arrow-0.10.0 python-dateutil-2.6.0"

any ideas ?

Thx

Getting errors: global name 'e' is not defined

Bot stoped working a few days ago, did instagram changed something or ist it just the bot?

`Starting operations - 14:58:16 08/01/2018

Current daily count:

  • All operations: 1354
  • Like news feed: 11
  • Likes: 495
  • Follows: 424
  • Unfollows: 424
  • Comments: 0

[ 2018-01-08 14:58:19 ] Refilling bucket - looking for "starand" posts... Error: global name 'e' is not defined. Trying again with glücklich... Error: global name 'e' is not defined

Current daily count:

  • All operations: 1354
  • Like news feed: 11
  • Likes: 495
  • Follows: 424
  • Unfollows: 424
  • Comments: 0

[ 2018-01-08 14:58:25 ] Refilling bucket - looking for "streetmeetina" posts... Error: global name 'e' is not defined. Trying again with meer... Error: global name 'e' is not defined

Current daily count:

  • All operations: 1354
  • Like news feed: 11
  • Likes: 495
  • Follows: 424
  • Unfollows: 424
  • Comments: 0

[ 2018-01-08 14:58:32 ] Refilling bucket - looking for "dronestagram" posts... Error: global name 'e' is not defined. Trying again with discoverearth... Error: global name 'e' is not defined

Current daily count:

  • All operations: 1354
  • Like news feed: 11
  • Likes: 495
  • Follows: 424
  • Unfollows: 424
  • Comments: 0`

Follow / Unfollow List after abnormal iterruption (or Ctrl-C)

Hello, I really like the way it's inteended to work.

followlist.csv is being populated while running:

4442366027,1497557029.0
1950604894,1497557211.0
49475988,1497557236.0

After Ctrl-C or abnormal interruption, I get this error:

Trying to sign in as [...]...  successfully signed in!

Cleaning up last sessions follows...
Error cleaning up: InstaBot instance has no attribute 'clean_up_loop_count'

Successfully logged out!

Thank you for using InstaBot!

followlist.csv changes to something like this

1430829264,0
2313758892,1
3153379750,2

unfollowlist.csv remains always empty.

It runs again, only if followlist.csv is cleared (empty).

Only comment on friend posts

I need a push in the right direction. :) I want to comment only on the latest media of my friends/people I follow. Preferably certain comment are placed when certain hastags are used.

error import arrow module

how to fix it?
Traceback (most recent call last): File "run.py", line 23, in <module> from src.instabot import InstaBot File "/home/instabot/src/instabot.py", line 23, in <module> import arrow ImportError: No module named arrow

Can't find friends on news feed

I have added my following to the friends.csv file but i dont think its working.

[ 2017-08-10 22:20:14 ] Scrolling through feed for friend's posts... found 24, 0 from friends.

What feed is it scrolling through?

Instagram's sharedData object changed

I don't know why this happens but since 2 days I can't use the bot anymore. Everytime I start the bot, it just gives me the following output:

image

I tried to find the error, but without success.

How to add comments

I followed the code but I don't see how to set up comments? (only how to set number of comment per day)

How to apply changes?

How are the changes in csv and config file, activated?
Do I have to close and restart the program after any change?

Error while logging: Invalid format string

I get this message after I start it. I run it on Windows Server 2016 64-bit and Python 2.7. Was using a similar InstaBot before but it stopped working.

Log:
Error while logging: Invalid format string
Success

    Starting Bot at 14:12 2018-12-10

    Current daily count:
     - All operations: 307
     - Like news feed: 0
     - Likes: 253
     - Follows: 27
     - Unfollows: 27
     - Comments: 0

Error while logging: Invalid format string
found 64 new.

Error while logging: Invalid format string
Error: object of type 'bool' has no len()
Traceback (most recent call last):
File "C:\InstaBot-master\src\instabot.py", line 735, in main
self.main_loop()
File "C:\InstaBot-master\src\instabot.py", line 782, in main_loop
self.refill_bucket()
File "C:\InstaBot-master\src\instabot.py", line 899, in refill_bucket
(len(feed_data), len(
TypeError: object of type 'bool' has no len()

    Current daily count:
     - All operations: 307
     - Like news feed: 0
     - Likes: 253
     - Follows: 27
     - Unfollows: 27
     - Comments: 0

Error while logging: Invalid format string
Success

    --- Delaying 9.20300006866 seconds ---

Error while logging: Invalid format string
Success

    --- Delaying 71.3900001049 seconds ---

Like by Location?

Hello,
How does the like function work? Is a like by location feature able to be implemented?

Problem parsing profile.json

When I run python run.py I get the following error:

[ 2017-10-21 04:52:57 ] Trying to sign in as [username]... successfully signed in!
Traceback (most recent call last):
File "run.py", line 45, in
main()
File "run.py", line 41, in main
instabot = InstaBot(profile, data = data)
File "/root/InstaBot/src/instabot.py", line 135, in init
self.init_profile()
File "/root/InstaBot/src/instabot.py", line 209, in init_profile
self.profile.import_profile(check_user(self.pull, self.insta_urls['user'], self.params['username']))
File "/root/InstaBot/src/instaprofile.py", line 55, in import_profile
self.profile = json.load(data_file)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Any ideas? Seems like it is unable to load my Instagram profile.

Server: Digital Ocean Ubuntu 16

Error when linking friends posts

Hey there! I set up the bot and am able to have it run all the commands with the exception of it liking my friend's posts (which is the main feature I'm looking to use).

This is the error I'm receiving:

Scrolling through feed for friend's posts:
Error getting new feed data: 'graphql'.
Error: object of type 'bool' has no len()

Is this a bug or something I haven't installed or set up correctly?

Problems loading JSON

I have to say I'm pretty new to python but crawling through the code and usage.

When I run the script I get "could not open config file"
But it's all there in the root folder.

What am I missing? couldn't find the answer in google :)

thanks a lot!

Last Post From Friends

I want to like the last post from all of the users on my friends.csv list while ignoring the tags.csv file. Is there any way to do this? Thanks.

Pip errors on Raspberry Pi

Thanks Nick for building the bot. The description page says that the bot should work on a raspberry Pi, but while installing the requirements via pip, I am getting the following error :

Could not find a version that satisfies the requirement time (from -r requirements.txt (line 3)) (from versions: )
No matching distribution found for time (from -r requirements.txt (line 3))

Please add location support

Would be great to have this feature, thank you very much! And also don't know why but it starts to like posts that don't have hashtags that are not in tags.csv

Thank you!

Some Errors ...

sudo pip install -r requirements.txt
Collecting arrow (from -r requirements.txt (line 1))
Downloading https://www.piwheels.org/simple/arrow/arrow-0.12.1-py2.py3-none-any.whl
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 2))
Collecting time (from -r requirements.txt (line 3))
Could not find a version that satisfies the requirement time (from -r requirements.txt (line 3)) (from versions: )
No matching distribution found for time (from -r requirements.txt (line 3))

and the next one:

python run.py
Traceback (most recent call last):
File "run.py", line 23, in
from src.instabot import InstaBot
File "/home/pi/instagrambot/InstaBot/src/instabot.py", line 23, in
import arrow
ImportError: No module named arrow

Error while commenting - debugging needed:

[ 2018-12-11 18:12:08 ] * Trying to comment "https://www.instagram.com/p/BrQZuAkg56r/": Error:
while commenting - debugging needed:
in explore operation - debugging needed:
Traceback (most recent call last):
File "/home/ubuntu/InstaBot-master/src/instabot.py", line 735, in main
self.main_loop()
File "/home/ubuntu/InstaBot-master/src/instabot.py", line 802, in main_loop
response = self.insta_operation(operation)
File "/home/ubuntu/InstaBot-master/src/instabot.py", line 926, in insta_operation
return self.comment_media(False)
File "/home/ubuntu/InstaBot-master/src/instabot.py", line 1029, in comment_media
raise Exception('\nwhile commenting - debugging needed: %s' % (e))
Exception:
while commenting - debugging needed:
in explore operation - debugging needed:

Module arrow

Error:

Traceback (most recent call last):
File "run.py", line 23, in
from src.instabot import InstaBot
File "/Users/FeduziMatteo/Desktop/InstaBot-master/src/instabot.py", line 23, in
import arrow
ImportError: No module named arrow

Instabot stats

User stats that show over time how followers and likes have increased thanks to Instabot:

  • Function to check user numbers daily and record number of likes, follows etc
  • Function to write stats to Excel as table and graph
  • Only check user media that has been posted 1 week prior to Instabot starting
  • File that says when Instabot was used for the first time to feed into above statement

Bot not starting ("out of hours")

Hello,
i'm trying to run your script into my raspberry, but it always says "Out of hours... sleeping until ", no matter if I change the hour to the near future (waiting couple of minutes to let it start) or in the past.

I've checked the date/time of my Pi, and it's showing the correct time (Timezone Europe)

edit: If i change the timezone to "Etc (GMT+1)" it works, so apparently when moving my timezone from the config, to Europe, it won't check the time (?!)

Foreign characters

Hello,
With the latest update, i cannot get this to run now.

it just

Starting operations - 17:44:56 29/06/2017

Current daily count:

  • All operations: 0
  • Like news feed: 0
  • Likes: 0
  • Follows: 0
  • Unfollows: 0
  • Comments: 0

Finishing operations...
Waiting 147 seconds

----UPDATE--
I think I was getting that error because it was actually time for the bot to sleep. I have changed the times to 10:00 and 10:00. Now for it working and liking tags, many errors such as this

Error: 'ascii' codec can't decode byte 0xd8 in position 7: ordinal not in range(128). Trying again with coding... Error: 'ascii' codec can't decode byte 0xd8 in position 7: ordinal not in range(128)

Refilling bucket - looking for "coffee" posts... Error: global name 'e' is not defined. Trying again with instapassport... found 17 new.

---update 2--
seems as if adding some foreign characters in tags_to_avoid break the bot

Time / Hours / All Day

What is the correct way to get the All-Day operation mode?

config.json

{
       [...]
        "bot_start_at": "10:00",
        "bot_stop_at": "10:00"
}

I get this output:

Trying to sign in as [...]...  successfully signed in
Starting operations - 11:02:17 17/06/2017
Traceback (most recent call last):
  File "run.py", line 52, in <module>
    main()
  File "run.py", line 48, in main
    instabot.main()
  File "/home/hoeger/ib-nickpettican/src/instabot.py", line 603, in main
    if self.times['start_bot'] > self.time_now():
AttributeError: InstaBot instance has no attribute 'times'

config.json

        "bot_start_at": "10:00",
        "bot_stop_at": "12:00"

Output:

Starting operations - 11:03:49 17/06/2017

Current daily count:
 - All operations: 0
 - Like news feed: 0
 - Likes: 0
 - Follows: 0
 - Unfollows: 0
 - Comments: 0

Finishing operations...

config.json

        "bot_start_at": "00:01",
        "bot_stop_at": "23:59"

Output:

Starting operations - 11:15:03 17/06/2017

Current daily count:
 - All operations: 2199
 - Like news feed: 0
 - Likes: 669
 - Follows: 667
 - Unfollows: 667
 - Comments: 196

Cant install requirements

always get that error:

pip install -r requirements.txt
Collecting arrow (from -r requirements.txt (line 1))
Using cached https://www.piwheels.org/simple/arrow/arrow-0.12.1-py2.py3-none-any.whl
Collecting requests (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl
Collecting time (from -r requirements.txt (line 3))
Could not find a version that satisfies the requirement time (from -r requirements.txt (line 3)) (from versions: )
No matching distribution found for time (from -r requirements.txt (line 3))

instabot not sign in

Hello friends, I have been trying to use Instabot but at the moment of initiating it appears ERROR, could not sign in.
ERROR while attempting sign in
does not show me some other error more than those, I can add that the account if it really exists

looping over checkpoint required

[ 2018-12-26 16:12:23 ] Trying to sign in as : [ 2018-12-26 16:12:29 ] Error signing in.Request returns 400 error.
Instagram error message: checkpoint_required
Checkpoint_url: /challenge/yyy/xxx/
Open Instagram on your desktop browser and confirm that it is you trying to log in!

reoccurring after refreshing the browser and passing the test

Instagram backend update

Hey @nickpettican

I just installed git everything was working but Now i'm getting some errors :

2018-01-02T22:13:09.556725+00:00 app[worker.1]: Cleaning up last sessions follows...
2018-01-02T22:13:09.557435+00:00 app[worker.1]:
2018-01-02T22:13:09.844011+00:00 app[worker.1]: [ 2018-01-02 22:13:09 ] * Trying to unfollow 6842596984... success
2018-01-02T22:13:09.844192+00:00 app[worker.1]: Waiting 33 seconds
2018-01-02T22:13:42.871463+00:00 app[worker.1]:
2018-01-02T22:13:42.871475+00:00 app[worker.1]: Starting operations - 22:13:42 02/01/2018
2018-01-02T22:13:43.080351+00:00 app[worker.1]:
2018-01-02T22:13:43.080354+00:00 app[worker.1]: Current daily count:
2018-01-02T22:13:43.080355+00:00 app[worker.1]: - All operations: 872
2018-01-02T22:13:43.080356+00:00 app[worker.1]: - Like news feed: 16
2018-01-02T22:13:43.080357+00:00 app[worker.1]: - Likes: 713
2018-01-02T22:13:43.080357+00:00 app[worker.1]: - Follows: 63
2018-01-02T22:13:43.080358+00:00 app[worker.1]: - Unfollows: 63
2018-01-02T22:13:43.080359+00:00 app[worker.1]: - Comments: 17
2018-01-02T22:13:43.080805+00:00 app[worker.1]:
2018-01-02T22:13:44.509226+00:00 app[worker.1]: [ 2018-01-02 22:13:43 ] Refilling bucket - looking for "love" posts...
2018-01-02T22:13:44.509249+00:00 app[worker.1]: Error in obtaining media by tag: 'tag'
2018-01-02T22:13:46.397384+00:00 app[worker.1]: Error: No posts found. Trying again with travel...
2018-01-02T22:13:46.397408+00:00 app[worker.1]: Error in obtaining media by tag: 'tag'
2018-01-02T22:13:46.398426+00:00 app[worker.1]: Error: No posts found
2018-01-02T22:13:46.399126+00:00 app[worker.1]:
2018-01-02T22:13:46.399128+00:00 app[worker.1]: Current daily count:
2018-01-02T22:13:46.399129+00:00 app[worker.1]: - All operations: 872
2018-01-02T22:13:46.399129+00:00 app[worker.1]: - Like news feed: 16
2018-01-02T22:13:46.399130+00:00 app[worker.1]: - Likes: 713
2018-01-02T22:13:46.399131+00:00 app[worker.1]: - Follows: 63
2018-01-02T22:13:46.399131+00:00 app[worker.1]: - Unfollows: 63
2018-01-02T22:13:46.399132+00:00 app[worker.1]: - Comments: 17
2018-01-02T22:13:46.399732+00:00 app[worker.1]:
2018-01-02T22:13:48.363082+00:00 app[worker.1]: [ 2018-01-02 22:13:46 ] Refilling bucket - looking for "science" posts...
2018-01-02T22:13:48.363095+00:00 app[worker.1]: Error in obtaining media by tag: 'tag'
2018-01-02T22:13:50.981868+00:00 app[worker.1]: Error: No posts found. Trying again with coding...
2018-01-02T22:13:50.981908+00:00 app[worker.1]: Error in obtaining media by tag: 'tag'
2018-01-02T22:13:50.982947+00:00 app[worker.1]: Error: No posts found
2018-01-02T22:13:50.984410+00:00 app[worker.1]:
2018-01-02T22:13:50.984412+00:00 app[worker.1]: Current daily count:
2018-01-02T22:13:50.984413+00:00 app[worker.1]: - All operations: 872
2018-01-02T22:13:50.984413+00:00 app[worker.1]: - Like news feed: 16
2018-01-02T22:13:50.984414+00:00 app[worker.1]: - Likes: 713
2018-01-02T22:13:50.984415+00:00 app[worker.1]: - Follows: 63
2018-01-02T22:13:50.984415+00:00 app[worker.1]: - Unfollows: 63
2018-01-02T22:13:50.984416+00:00 app[worker.1]: - Comments: 17
2018-01-02T22:13:50.984864+00:00 app[worker.1]:

getting same error on loop,

Comments twice on same post

I noticed that the bot sometimes comments twice on the same post. I think it's obvious what's the problem here if the user then notices the similar second comment on his post 😅

So the bot may should check if it already commented on a post before adding it to its bucket.

Logger

ImportError: cannot import name 'Logger' from 'logger' (C:\Program Files (x86)\lib\site-packages\logger_init_.py)
How fix it?

Error checking user: 'user'.

Is it just me or is there a problem with the user-verifying function check_user()?

image
image

I tried to fix it myself but I can't find anything wrong. But since I'm a beginner, I don't really trust my skills.

Willing to Contribute Great Content to the Instabot 1.2 Site Homepage

Hi,

My name is Phil and I am a professional copywriter.

I'd like to contribute to the instabot 1.2 project by creating informative, compelling and enticing content for the website homepage.

I have done this for many other projects here on GitHub and I believe my copywriting contributions will be immensely beneficial to the Instabot 1.2 project.

In this vein, I'll also be submitting other contributions for the website such as ...
Homepage content
FAQ page content
About Instabot
Wiki content
Press releases/ blog posts
Tutorials on How to use Instabot effectively

...and other content as required by the POs.

Such content will undoubtedly improve return traffic to the website and ultimately convince more site visitors to download and install the app, thereby increasing the popularity of the app in the long run.

Now...

Can I go ahead and create the content?

Also, will the contributions be merged to the master repository?

Please let me know asap, so I could get started immediately.

I know that I probably don't need to do this but I believe that getting your permission before going ahead is indeed the right thing to do.

Thanks for taking the time to read this as I readily await your positive response.

Time zone

Hi!! First of all thank you for the bot. I would like to a know with which time zone does the bot work.

Liking spree

When the user posts media do a liking spree to increase likes.

  • Check if user posted something in the last hour
  • Number of likes in spree TBC (e.g. likes_per_day - 1000 but maximum 200)
  • Like every post for every hashtag in user's post with 10-20 second breaks
  • Integrate with current main loop

Commenting is not working

Commenting is not working for me, even on the default configuration.
I get the message:
Error: while commenting - debugging needed.
Please help

Can't handle "Checkpoint-Required" Errors

If Login fails because Instagram requires a Checkpoint (user verification) it's not possible to login anymore. Is there any way to solve this in code or a walkaround?

Set unfollow parameters?

Is it possible to set the bot to unfollow everyone who is following more than 2000 accounts?

IE

bot scrapes followings>unfollows accounts with more than 2000 following

Trying to sign in

dosent work, always get that error:

ERROR while attempting sign in: "name='csrftoken', domain=None, path=None"

error while running ....

Traceback (most recent call last):
File "run.py", line 23, in
from src.instabot import InstaBot
File "/home/udy/Desktop/InstaBot-master/src/instabot.py", line 23, in
import arrow
ImportError: No module named arrow

Unfollow: False not working

Hey there. I'm trying to use your app just to like posts from people my instagram account is following.

I set the unfollow variable to false, however the first command that it runs after starting it up is to unfollow users. Is there something I didn't configure correctly?

Thanks!

Help with Errors

Hello,

I just did a clean git clone but i'm getting some errors :

Trying to sign in as yyyyyyyyyyy...  successfully signed in!

**ERROR getting user data.**

Starting operations - 16:20:34 09/03/2017

Current daily count:
 - All operations: 322
 - Like news feed: 9
 - Likes: 255
 - Follows: 29
 - Unfollows: 29
 - Comments: 0

Refilling bucket - looking for "xxxxxxxxxxxxx" posts...

Scrowling through feed for friend's posts...

**ERROR getting news feed media.
Checking the profiles of those you follow...
Error: 'bool' object is not iterable**

Current daily count:
 - All operations: 322
 - Like news feed: 9
 - Likes: 255
 - Follows: 29
 - Unfollows: 29
 - Comments: 0

Do you have any idea how i can debug these ? Thanks !

Error backing up when commenting with emojis

I'm getting this error after I commented using an emoji. Looks like the script can't save to the activity log maybe?

Error backing up: 'ascii' codec can't encode character u'\U0001f60d' in position 89: ordinal not in range(128)

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.