Instapy: Loops through pictures of users even if session.set_upper_follower_count

Created on 26 Oct 2017  Â·  14Comments  Â·  Source: timgrossmann/InstaPy

Bountysource

Expected Behavior

Skip Follower

Current Behavior

Opens Followers images even if session.set_upper_follower_count is exceeded

Possible Solution (optional)

Correct logic to skip follower if session.set_upper_follower_count is exceeds limit set.

InstaPy configuration

session.set_lower_follower_count(limit = 10)
session.set_upper_follower_count(limit = 300)
bounty bug help wanted

Most helpful comment

It just stuck. If you could point me in the right direction for the section of code that handles this, I'd be glad to pick it apart to see if I can find something. :-)

All 14 comments

if you can point me to the general area of the script where this logic is , I can take a crack at fixing it.

@knark8086 options like
follow_user_followers
aren't impacted by set_lower_follower_count/set_upper_follower_count

set_lower_follower_count/set_upper_follower_count impacts in like options like
like_by_tags

I do believe "session.interact_user_followers" is affected when liking / commenting on followers.
Instead skipping the process of interacting with a follower who an out of bounds number of followers, it iterates through each post and evaluates session.set_lower_follower_count & session.set_upper_follower_count over and over again.

#Example:
session.set_lower_follower_count(limit = 10)
session.set_upper_follower_count(limit = 300)
session.set_user_interact(amount=u_Interact, random=True, percentage=50, media='Photo')
session.set_do_follow(enabled=True, percentage=67)
session.set_do_like(enabled=True, percentage=27)
session.interact_user_followers(['instagram'], amount= 50, random=True)
Output: (Abbreviated)

Post [1/3]
Image from: b'mehb_wl'
Number of Followers: 311
--> Image not liked: Number of followers exceeds limit

Post [1/3]
Image from: b'mehb_wl'
Number of Followers: 311
--> Image not liked: Number of followers exceeds limit

Post [1/3]
Image from: b'mehb_wl'
Number of Followers: 311
--> Image not liked: Number of followers exceeds limit

Post [1/3]
Image from: b'mehb_wl'
Number of Followers: 311
--> Image not liked: Number of followers exceeds limit

Post [1/3]
Image from: b'mehb_wl'
Number of Followers: 311
--> Image not liked: Number of followers exceeds limit

-------------
--> Given amount not fullfilled, image pool reached its end

@knark8086 Did you put the first image 5 times by mistake or is it stuck with the first image?

It just stuck. If you could point me in the right direction for the section of code that handles this, I'd be glad to pick it apart to see if I can find something. :-)

@knark8086 any update on that? Have you been successful with fixing this bug?

I have the same problem. Any update?

(Abbreviated)

Username [39/249]
--> stevecalder
('Getting', u'stevecalder', 'image list...')
Interaction begin...
--> Not following
Post [1/3]
Image from: stevecalder
Number of Followers: 16664
--> Image not liked: Number of followers exceeds limit

Post [1/3]
Image from: stevecalder
Number of Followers: 16664
--> Image not liked: Number of followers exceeds limit

Post [1/3]
Image from: stevecalder
Number of Followers: 16664
--> Image not liked: Number of followers exceeds limit

Post [1/3]
Image from: stevecalder
Number of Followers: 16664
--> Image not liked: Number of followers exceeds limit


Post [1/3]
Image from: stevecalder
Number of Followers: 16664
--> Image not liked: Number of followers exceeds limit

-------------
--> Given amount not fullfilled, image pool reached its end

@jksyrek @hestuppfodarn No updates yet, sorry...

Feel free to help get this resolved faster: https://www.bountysource.com/issues/50778182-loops-through-pictures-of-users-even-if-session-set_upper_follower_count

@timgrossmann Bounty submitted!

hi @hestuppfodarn , just submitted a PR #936 , can you test it ?

@converge,
I’m away until Monday, will check first thing then!
Thanks!

hey @hestuppfodarn did you had the time to test it ? we already merged it.

Sorry. It works! Claim the bounty
On Tue, 21 Nov 2017 at 22:26, João Paulo Vanzuita notifications@github.com
wrote:

hey @hestuppfodarn https://github.com/hestuppfodarn did you had the
time to test it ? we already merged it.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/timgrossmann/InstaPy/issues/818#issuecomment-346166401,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATJJeJQ1POJX3ru_5MItX0668sq8np46ks5s40AhgaJpZM4QG1al
.

>


Emil Esselin
(+46) 70 432 81 18

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Naramsim picture Naramsim  Â·  3Comments

CharlesCCC picture CharlesCCC  Â·  3Comments

drcyber975 picture drcyber975  Â·  3Comments

rahulkapoor90 picture rahulkapoor90  Â·  3Comments

thisishotdog picture thisishotdog  Â·  3Comments