Code Monkey home page Code Monkey logo

Comments (16)

ricardojoserf avatar ricardojoserf commented on June 19, 2024

Hi @jose46moreno !! I am using Python 3.8.2 in a Linux box and I am unable to replicate this error, probably this error arised because of a very continued use of the script or maybe there is a problem with the account. I would wait for some hours and try again, if the error persists please let me know :)

from instagram-followers-bot.

josepfm avatar josepfm commented on June 19, 2024

It's weird because the mistake only happens to me with that command.

I have executed the follow command through a tag and it has been executed without problems.

Last week I executed the unfollow command and it didn't give any errors, so it's something new, but it keeps on playing.

Tell me how I can help you to make the possible solution easier, if any.

from instagram-followers-bot.

ricardojoserf avatar ricardojoserf commented on June 19, 2024

If you could add in line 89 these two new lines (before "for i in followings:"):
print (followings)
print (followers)

And right after "for i in followings:"this one new line:
print (i)

And tell me what you see or send me a screenshot. I think maybe the "i" parameter is None for some reason, maybe because it does not retrieve the value of something. Or maybe it is an encoding problem

from instagram-followers-bot.

ricardojoserf avatar ricardojoserf commented on June 19, 2024

Could you solve it @jose46moreno ? :)

from instagram-followers-bot.

josepfm avatar josepfm commented on June 19, 2024

Sorry for the delay in the message, I had some problems that prevented me from doing it.

I'm attaching in several screenshots the result of executing the instruction with the prints you indicated.

Captura de pantalla 2020-06-22 a las 14 05 50

Captura de pantalla 2020-06-22 a las 14 06 01

Captura de pantalla 2020-06-22 a las 14 06 18

Captura de pantalla 2020-06-22 a las 14 06 37

from instagram-followers-bot.

ricardojoserf avatar ricardojoserf commented on June 19, 2024

Ok xDD I think the error is in the line "respJSON = response.json()" in aux_funcs.py

Try and change the function get_id in aux_funcs.py to this one, which will help to show the real error:

def get_id(username):
url = "https://www.instagram.com/web/search/topsearch/?context=blended&query="+username+"&rank_token=0.3953592318270893&count=1"
response = requests.get(url)
try:
respJSON = response.json()
user_id = str( respJSON['users'][0].get("user").get("pk") )
return user_id
except:
try:
print(response.text)
except:
return "Unexpected error"

from instagram-followers-bot.

josepfm avatar josepfm commented on June 19, 2024

Looks like that was, uh, super unfollow running smoothly.

Thank you very much!

from instagram-followers-bot.

ricardojoserf avatar ricardojoserf commented on June 19, 2024

You are welcome! :) I will close the issue now

from instagram-followers-bot.

josepfm avatar josepfm commented on June 19, 2024

Sorry @ricardojoserf I think it still doesn't work.

Now the console doesn't return an error, but the unfollow doesn't run.

In the console it says that it is stopping following X user but when it is finished, I see that it is not like that.

I'm attaching a screenshot of what is now showing up in the terminal while it is running.

Captura de pantalla 2020-06-23 a las 13 52 50

from instagram-followers-bot.

ricardojoserf avatar ricardojoserf commented on June 19, 2024

Hi again @jose46moreno . I think you account may be too new and you can not do so many requests. Try to add a delay like this:

try:
time.sleep(10) ##add this line
respJSON = response.json()

Try with 10 seconds of delay, if it does not work try with 60 seconds, and if it does not work let me know here :)

from instagram-followers-bot.

josepfm avatar josepfm commented on June 19, 2024

@ricardojoserf Sorry to keep bringing you bad news, but putting in both 10 and 60 seconds, the result is the same.

As soon as you run, it already shows the same thing I shared with you in the previous picture.

from instagram-followers-bot.

josepfm avatar josepfm commented on June 19, 2024

@ricardojoserf could you see this?

from instagram-followers-bot.

ricardojoserf avatar ricardojoserf commented on June 19, 2024

Hi @jose46moreno . Sorry I am working a lot lately... Hopefully i will have time next weekend

from instagram-followers-bot.

josepfm avatar josepfm commented on June 19, 2024

@ricardojoserf ok, don't worry!

Thanks!

from instagram-followers-bot.

ricardojoserf avatar ricardojoserf commented on June 19, 2024

Hi @josepfm, I am still unable to replicate the error, I am very sorry. If I find something related to this in the future or someone tells me this happens in more cases, I will reopen the issue. Sorry! :P

from instagram-followers-bot.

josepfm avatar josepfm commented on June 19, 2024

Ok, thanks.

from instagram-followers-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.