Giter VIP home page Giter VIP logo

Comments (7)

jflessau avatar jflessau commented on July 18, 2024

Are you using python 3? In python 3 print is a function. So you cloud change
print "some text"
to
print("some text")"

Or wait a few minutes. I'll update this repository and fix this

from winbot-twitter-bot.

jflessau avatar jflessau commented on July 18, 2024

Done.
Download this repo and try it again.
If any other errors occour, please let me know :)

from winbot-twitter-bot.

gebanntgekickt avatar gebanntgekickt commented on July 18, 2024

Thx for the uick support, the Bot runs but the following error occurs after following one tweet:
Traceback (most recent call last):
File "C:\Users\XX\Desktop\winbot-twitter-bot-master\winbot.py", line 289, in
win_things()
File "C:\Users\XX\Desktop\winbot-twitter-bot-master\winbot.py", line 35, in win_things
get_intimate_with(filtered_tweets)
File "C:\Users\XX\Desktop\winbot-twitter-bot-master\winbot.py", line 116, in get_intimate_with
follow_author(tweet)
File "C:\Users\XX\Desktop\winbot-twitter-bot-master\winbot.py", line 177, in follow_author
followed_num = follow_user(tweet["user"]["screen_name"])
File "C:\Users\XX\Desktop\winbot-twitter-bot-master\winbot.py", line 169, in follow_user
print("followed " + screen_name.encode("ascii", "ignore"))
TypeError: must be str, not bytes

Thx for your support!

from winbot-twitter-bot.

jflessau avatar jflessau commented on July 18, 2024

This seems to be an error that can’t solved for python 2 an 3 at the same time. Unfortunately, the only option would be using python 2.

from winbot-twitter-bot.

gebanntgekickt avatar gebanntgekickt commented on July 18, 2024

I fixed it by converting it to string

does the blacklist work for your bot? It seems that despite some user are in the blacklist the bot still retweets tweets of these users

from winbot-twitter-bot.

jflessau avatar jflessau commented on July 18, 2024

So far, the blacklist seems to work. I’ll have an eye on that one.

Would you mind posting the line that fixed the previous error?

from winbot-twitter-bot.

gebanntgekickt avatar gebanntgekickt commented on July 18, 2024

witter.create_friendship(screen_name=screen_name)
add_line(screen_name, "follows.txt")
print("followed " + str(screen_name.encode("ascii", "ignore")))
except TwythonError as e:
print("FAILED to follow " + str(screen_name.encode("ascii", "ignore")))

from winbot-twitter-bot.

Related Issues (19)

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.