InstaPy / InstaPy

📷 Instagram Bot - Tool for automated Instagram interactions
GNU General Public License v3.0
16.85k stars 3.77k forks source link

Too long pauses between actions #2697

Closed tompicca closed 6 years ago

tompicca commented 6 years ago

Hi there, I noticed that after some (variable) time after I ran the script, it starts to take very long naps (always about 20 minutes) between each unfollow, apparently without any reason. Also I set sleep_delay=300 (about 5 minutes) but sometimes the nap takes much more time (in the case below, 42 min). Please look at here:

INFO [2018-08-16 20:42:29] [empire]  --> Ongoing Unfollow 269/600, now unfollowing:

INFO [2018-08-16 21:02:50] [empire]  --> Ongoing Unfollow 270/600, now unfollowing:

INFO [2018-08-16 21:03:03] [empire]  sleeping for about 1min
INFO [2018-08-16 21:45:07] [empire]  --> Ongoing Unfollow 271/600, now unfollowing:

INFO [2018-08-16 22:05:34] [empire]  --> Ongoing Unfollow 272/600, now unfollowing:

INFO [2018-08-16 22:06:10] [empire]  --> Ongoing Unfollow 273/600, now unfollowing:

INFO [2018-08-16 22:26:37] [empire]  --> Ongoing Unfollow 274/600, now unfollowing:

INFO [2018-08-16 22:47:04] [empire]  --> Ongoing Unfollow 275/600, now unfollowing:

INFO [2018-08-16 22:47:43] [empire]  --> Ongoing Unfollow 276/600, now unfollowing:
INFO [2018-08-16 22:47:43] [empire]     Removed '2018-08-13 09:27 ~ clarissadilallo' from followedPool.csv file

INFO [2018-08-16 23:07:08] [empire]  --> Ongoing Unfollow 277/600, now unfollowing:
INFO [2018-08-16 23:07:08] [empire]     Removed '2018-08-13 08:17 ~ ellearama' from followedPool.csv file

INFO [2018-08-16 23:27:36] [empire]  --> Ongoing Unfollow 278/600, now unfollowing:
INFO [2018-08-16 23:27:36] [empire]     Removed '2018-08-13 09:02 ~ montalbanoclaudia02' from followedPool.csv file

INFO [2018-08-16 23:28:10] [empire]  --> Ongoing Unfollow 279/600, now unfollowing:
INFO [2018-08-16 23:28:10] [empire]     Removed '2018-08-13 08:07 ~ dea_antiope_sofia' from followedPool.csv file

INFO [2018-08-16 23:48:33] [empire]  --> Ongoing Unfollow 280/600, now unfollowing:

INFO [2018-08-16 23:48:49] [empire]  sleeping for about 1min
INFO [2018-08-17 00:33:13] [empire]  --> Ongoing Unfollow 281/600, now unfollowing:

INFO [2018-08-17 00:30:44] [empire]  --> Ongoing Unfollow 282/600, now unfollowing:
INFO [2018-08-17 00:30:44] [empire]     Removed '2018-08-13 08:30 ~ idamainetti' from followedPool.csv file

INFO [2018-08-17 00:51:11] [empire]  --> Ongoing Unfollow 283/600, now unfollowing:
INFO [2018-08-17 00:51:11] [empire]     Removed '2018-08-13 08:23 ~ tizianamaugeri' from followedPool.csv file

Is this behaviour normal? Why usually the script takes less than 1 minute to unfollow a user but often it requires 20 min? Why usually the sleep time is about 5 min (as I set) but often it takes much more time (sometimes hours)?

tompicca commented 6 years ago

In Mac OS X, just check "Prevent computer from sleeping automatically when the display is off" in Energy Saver to solve the issue.