InstaPy / InstaPy

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

Can't unfollow people #1194

Closed rayanakiki closed 5 years ago

rayanakiki commented 6 years ago

Hello.... i am getting this error when i try to unfollow people that dont follow back INFO - Session started - 2018-01-04 20:10:17 INFO - Logged in successfully! ERROR - set_automated_followed_pool error [Errno 2] No such file or directory: './logs/soundbasix_followedPool.csv'

hestuppfodarn commented 6 years ago

Please add you quickstart file so we can see what you have written

amauryleproux commented 6 years ago

vim logs/soundbasix_followedPool.csv save chmod -R 755 logs/

should be fix it

mbancha commented 6 years ago

Sorry, I don't really understand, I'm not meant to paste that code into the script am I? Not sure what vim is...

My unfollow script:

import os
import time
from tempfile import gettempdir

from selenium.common.exceptions import NoSuchElementException
from instapy import InstaPy
import schedule
import time

session = InstaPy(username='---', password='---')

session.login()

session.unfollow_users(amount=1000, onlyInstapyFollowed = True, sleep_delay=600)

and the error returned:

ERROR [2018-05-17 12:16:55] [---] set_automated_followed_pool error [Errno 2] No such file or directory: 'C:\Users\Matt\Documents\GitHub\InstaPy\logs\---_followedPool.csv' INFO [2018-05-17 12:16:56] [---] --> Total people unfollowed : 0 Exception ignored in: <bound method Service.del of <selenium.webdriver.chrome.service.Service object at 0x061C03F0>> Traceback (most recent call last): File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 163, in del File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 139, in stop File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 110, in send_remote_shutdown_command ImportError: sys.meta_path is None, Python is likely shutting down

julzKB commented 6 years ago

@Spiz Did you try creating the .csv file yourself ?

create an empty text file here

C:\Users\Matt\Documents\GitHub\InstaPy\logs\soundbasix_followedPool.csv

mbancha commented 6 years ago

@julzKB oh well that's interesting, no I didn't, but when I checked the followedPool.csv that's generated in my folder there, it's totally empty. At this point there's some 1800 names that I want to unfollow, so it seems like the easiest way might just be doing it manually this time, no?

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. > If this problem still occurs, please open a new issue