InstaPy instance has no attribute 'set_upper_follower_count'

Created on 2 May 2018  路  9Comments  路  Source: timgrossmann/InstaPy

Expected Behavior

Current Behavior

Traceback (most recent call last):
File "custom.py", line 20, in job
session.set_upper_follower_count(limit=3000)
AttributeError: InstaPy instance has no attribute 'set_upper_follower_count'

I am getting this error, had no prior issues with this?

Possible Solution (optional)

InstaPy configuration

Most helpful comment

Hi @joanroig,
you're a good catcher 馃槈
Yes, actually, it was a logical misbehavior and was my mistake but I realized it late and then included its _small_ fix inside #1919.
For now, you can simply apply the affected lines in #1919:
changed lines

Also, without modifying any bit, if you give enabled=True, potency_ratio=None, delimit_by_nubers=False, then it will deactivate, too).
But after the #1919 merge, you will simply use enabled=False to deactivate it.

All 9 comments

hi @ahmetu66,
It is obvious to state that your quickstart script (or custom.py) is using deprecated feature(s).
Recently, set_upper_follower_count and set_lower_follower_count features are replaced with more enhanced version: set_relationship_bounds feature,

session.set_relationship_bounds(enabled=True,
             potency_ratio=-1.21,
              delimit_by_numbers=True,
               max_followers=4590,
                max_following=5555,
                 min_followers=45,
                  min_following=77)

_Just make sure your InstaPy files are up-to-date and you use the new feature in your quickstart scripts._

See README for detailed usage of the set_relationship_bounds feature.

working now, thank you!

When I git pull, it will not update the code automatically, because I have named it different. Is it recommended to use quickstart.py as the script name for future updates?

@ahmetu66,
Actually git is a little bit sophisticated tool, but worths mastering.
Early days I started using InstaPy, I used customized names instead of quickstart word but with the course of time I see that it reeally does not matter at all, oppositely being familiar with the term quickstart makes easier to cooperate with other folks using the project, it is a nice term who thought of...
_Personally I got one main quickstart script called quickstart_new_design.py and it keeps all of my customizations and I always keep quickstart.py file untouched for the ease of merging from master._

Hi @uluQulu, is there any way to disable this set_relationship_bounds completely? It seems to run as default, but if I try to put it into my code and set it to enabled=False it runs as when it is set to true saying:

Image not liked: uluQulu is not a potential user with the relationship ratio of 1.0

Hi @joanroig,
you're a good catcher 馃槈
Yes, actually, it was a logical misbehavior and was my mistake but I realized it late and then included its _small_ fix inside #1919.
For now, you can simply apply the affected lines in #1919:
changed lines

Also, without modifying any bit, if you give enabled=True, potency_ratio=None, delimit_by_nubers=False, then it will deactivate, too).
But after the #1919 merge, you will simply use enabled=False to deactivate it.

@uluQulu awesome, many thanks for the update!

Hi @RteV,
First solve this,

Traceback (most recent call last):
File "quickstart.py", line 8, in
session.set_upper_follower_count(limit = 1250)
AttributeError: 'InstaPy' object has no attribute 'set_upper_follower_count'

_your quickstart script seems to have a piece of old feature_
Get rid of deprecated features (set_upper_follower_count and set_lower_follower_count) and use set_relationship_bounds (see README)

thanks, @uluQulu! Not so easy to try it though, every time I start Instapy GUI it overwrites the handmade changes in quickstart.py.
Without the option Upper Count and Lower Count in Following Parameter the GUI works for about an hour or so, than it breaks down and has the same error code.

I'm gonna try several ways to make the changes, if you have the shortcut than I will be happy to hear about it too :-)

PS. Sorry for incidentally removing my first post

Welcome, @RteV,
I understand now, GUI tool works with pre-defined parameters, well you can change that parameter inside it's source code.
_But I would recommend you using handmade quickstart.py xD_
Write your own quickstart and start it through console! It is the way you can get the best out of InstaPy.

  • Hint: Start by getting the list of all available features (_settings and actions_) and then categorise them according to the priorities. After it, select the most useful features you want and then write them down in a quickstart file to get started.

See the definitions (_starts with def_) in instapy.py file to see all of the available features you can use..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

converge picture converge  路  3Comments

drcyber975 picture drcyber975  路  3Comments

Spyd3r0us picture Spyd3r0us  路  3Comments

46960 picture 46960  路  3Comments

ghost picture ghost  路  3Comments