asimptot / FollowerBot

Follower bot for Instagram
190 stars 67 forks source link

get_instagram_followers script don't work anymore (used to work 12hrs ago) #43

Closed watusshi closed 1 year ago

watusshi commented 1 year ago

File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.496.0_x64qbz5n2kfra8p0\Lib\subprocess.py", line 1024, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.496.0_x64qbz5n2kfra8p0\Lib\subprocess.py", line 1433, in _execute_child args = list2cmdline(args) ^^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.496.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 608, in list2cmdline for arg in map(os.fsdecode, seq): File "", line 824, in fsdecode TypeError: expected str, bytes or os.PathLike object, not NoneType

asimptot commented 1 year ago

Hi,

Can you give more details about this error?

helpmx commented 1 year ago

Go over your code run it until it works for u then give us a update maybe someone messed with ur code it worked this week I see a foreign language in ur code

watusshi commented 1 year ago

Hi,

Can you give more details about this error?

I don't know what's going on, it was working yesterday, but then it stopped working today, I've tried to use a vpn and changed my username. Those are the error im getting when running the script

helpmx commented 1 year ago

image

it’s running rn but the sad part is no followers are coming

watusshi commented 1 year ago

File "C:\Users\blackhat\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\undetected_chromedriver__init.py", line 411, in init browser = subprocess.Popen( ^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.496.0_x64qbz5n2kfra8p0\Lib\subprocess.py", line 1024, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.496.0_x64qbz5n2kfra8p0\Lib\subprocess.py", line 1433, in _execute_child args = list2cmdline(args) ^^^^^^^^^^^^^^^^^^ File "C:\Users\blackhat\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\undetected_chromedriver\init.py", line 411, in init browser = subprocess.Popen( ^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.496.0_x64qbz5n2kfra8p0\Lib\subprocess.py", line 1024, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.496.0_x64qbz5n2kfra8p0\Lib\subprocess.py", line 1433, in _execute_child args = list2cmdline(args) ^^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.496.0_x64qbz5n2kfra8p0\Lib\subprocess.py", line 608, in list2cmdline for arg in map(os.fsdecode, seq): File "", line 824, in fsdecode TypeError: expected str, bytes or os.PathLike object, not NoneType

This is the error im getting everytime I run it inside the windows terminal and vscode

watusshi commented 1 year ago

Also I have another suggestion, if you are able to each of the bots to 500 following that would be awesome, since majority of them are getting banned resulting in users losing their followers if they're not running the script!

helpmx commented 1 year ago

I started with 90 F ran the scr and ended with 700 I stop running scr I started losing F slowly I lost 300 Without my account getting banned

I figure out how to get the script to run but there no followers being added to IG it's just prints the (10 followers added)

In the foreign language you will find the answer to get it to run but we still have to figure out how to make followers active. Maybe a new Follower list ? __

watusshi commented 1 year ago

I started with 90 F ran the scr and ended with 700 I stop running scr I started losing F slowly I lost 300 Without my account getting banned

I figure out how to get the script to run but there no followers being added to IG it's just prints the (10 followers added)

In the foreign language you will find the answer to get it to run but we still have to figure out how to make followers active. Maybe a new Follower list ? __

There's no follower list, the code create new bots to follower you, but my suggestion was to make it cap at 500 followers instead of unlimited since Instagram is filtering out bots that follow people randomly. And oh wow, I need to check the foreign language section then, thanks for your help, I will see

Aljebaay commented 1 year ago

I think the problem is with XPATH:

When new elements are added or deleted from the source code of the webpage, the XPath of that specific element also changes. Check XPath to determine if it is valid.

watusshi commented 1 year ago

I think the problem is with XPATH:

When new elements are added or deleted from the source code of the webpage, the XPath of that specific element also changes. Check XPath to determine if it is valid.

Will definitely check it, I will also keep everyone updated

watusshi commented 1 year ago

Update: I think I found the error. The code runs perfectly fine, it's just, we need to have google chrome on our pc to run it, I tested it on two of my computers, the one without chrome didn't run before, but then successfully ran after I installed Chrome on it. I think it uses some of the backend tools in Chrome

helpmx commented 1 year ago

Did it add followers or print the same message?

asimptot commented 1 year ago

Hi all,

Sorry for late reply. This code uses https://tolinay.com/ website and I have no clue about server-side changes. As far as I see, Instagram removes fake followers and this website creates fake accounts to follow all you. So, there is no action on my side to figure out this issue. If you think the program is wrong, please run it in non-headless mode and see steps just in time!

watusshi commented 1 year ago

Did it add followers or print the same message?

Yes

watusshi commented 1 year ago

Hi all,

Sorry for late reply. This code uses https://tolinay.com/ website and I have no clue about server-side changes. As far as I see, Instagram removes fake followers and this website creates fake accounts to follow all you. So, there is no action on my side to figure out this issue. If you think the program is wrong, please run it in non-headless mode and see steps just in time!

Understandable, make sense!

watusshi commented 1 year ago

UPDATE: PROBLEM SOLVED

Can you add a reminder to the readme.txt saying that you need to have Google Chrome installed otherwise it won't work because that was the issue

asimptot commented 1 year ago

@watusshi hi,

I have updated requirement.txt file --> commit no: 85a9999469b94a963acbb7b2abae6bde4d6618d8

Please also check the latest init.py file.

watusshi commented 1 year ago

@watusshi hi,

I have updated requirement.txt file --> commit no: 85a9999

Please also check the latest init.py file.

Wait no, please keep undetected_chromedriver==3.1.7, otherwise the script won't run. What I meant was that please tell people to install Google Chrome before using this script because the script needs Google Chrome for it to work and yes please keep "undetected_chromedriver==3.1.7" in the init.py file

watusshi commented 1 year ago

@watusshi hi,

I have updated requirement.txt file --> commit no: 85a9999

Please also check the latest init.py file.

asimptot commented 1 year ago

@watusshi hi,

Does it work? Commit id: 8f74b4d0bb7f512907f48c6cc525a09fad3e0bac