Comments (7)
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.
Done.
Download this repo and try it again.
If any other errors occour, please let me know :)
from winbot-twitter-bot.
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.
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.
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.
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.
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)
- Public blacklist HOT 2
- Limited Results HOT 16
- create_friendship HOT 1
- Ban HOT 1
- two tracebacks HOT 1
- Follower HOT 2
- problem HOT 1
- list index out of range error HOT 1
- search query problem HOT 1
- Can't launch the script from another directory HOT 2
- Bot follow retweet user not original user HOT 11
- Issue HOT 2
- update broke the app HOT 1
- 'Like' a tweet HOT 2
- Blacklist HOT 4
- Twython installation HOT 2
- SyntaxError HOT 1
- Very please u add the tag friend function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winbot-twitter-bot.