Giter VIP home page Giter VIP logo

Comments (4)

 avatar commented on June 14, 2024 1

Well thank you, that was the problem! This vps always gives me trouble with DNS, I flushed them and its working again.

from twitterfollowbot.

jackrhysider avatar jackrhysider commented on June 14, 2024

The program still crashes for certain suspended accounts. But I did manage to get past this by just adding those account IDs to the USERS_KEEP_FOLLOWING list. So the script doesn't try to unfollow that user ID anymore.

from twitterfollowbot.

 avatar commented on June 14, 2024

I am getting the same error, here is what I run:

from TwitterFollowBot import TwitterBot

my_bot = TwitterBot("/root/twitterfollowbot/configbot.txt")
my_bot.sync_follows()
my_bot.auto_unfollow_nonfollowers()

And here is the error:

Choosing time between 10 and 30 - waiting 30 seconds before action
Unfollowed 1071444127
Choosing time between 10 and 30 - waiting 23 seconds before action
Traceback (most recent call last):
  File "/root/twitterfollowbot/unfollow.py", line 5, in <module>
    my_bot.auto_unfollow_nonfollowers()
  File "/usr/local/lib/python2.7/dist-packages/TwitterFollowBot/__init__.py", line 404, in auto_unfollow_nonfollowers
    self.TWITTER_CONNECTION.friendships.destroy(user_id=user_id)
  File "/usr/local/lib/python2.7/dist-packages/twitter/api.py", line 308, in __call__
    return self._handle_response(req, uri, arg_data, _timeout)
  File "/usr/local/lib/python2.7/dist-packages/twitter/api.py", line 315, in _handle_response
    handle = urllib_request.urlopen(req, **kwargs)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
    context=self._context)
  File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>

The account my bot unfollowed isn't restricted or suspended, so I'm not sure whats going on.

from twitterfollowbot.

breakfastmeansbreakfast avatar breakfastmeansbreakfast commented on June 14, 2024

Hi! Looking at the last line in your log it’s a different error.

Name resolution errors are normally associated with DNS errors, try clearing your dns cache and try again.

from twitterfollowbot.

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.