Comments (6)
Thanks for your submission Boroom, I'm gonna explain breiefly how this project works and so we can understand if this is the intended or unintended behavior.
Let's take a scenario: I have two users on twitter, edoardottt and edobot. The one I have access to API is edobot, this means I will set:
- In the config.yaml file the api keys and tokens of edobot
- In the globals.py file I will set
user = "edoardottt"
andbot_user = "edobot"
.
If now I start twitterbot 2 with python twitterbot2.py -k happy
this will:
- Search for tweets related to the term "happy".
- Search for tweets in edoardottt 's timeline.
If you don't want to like and retweet edoardottt's tweets you have to execute python twitterbot2.py -k happy -nu
. -nu
means no user and will search (two times instead of one, so double tweets) only for terms happy.
Now, when you say "liking and retweeting my own tweets", you means your bot is liking and retweeting edobot's tweets or your personal user's tweets?
Thanks :)
from twitterbot2.
Maybe I misunderstood something but I'm trying to explain better what I've seen !
In your case, you're telling me that you have 2 accounts, one is your "personal" and the other the "bot" one (where you have the api keys).
In my case, I only have one account (and maybe this is the issue).
My twitter account was empty (no tweets, no friends, no like, nothing 🤣).
I ran python twitterbot2.py -k #MSB
for example and it appears that there were only a few tweets where there was this #.
So first, it started correctly to like and retweet the tweets that were found and then, after a few seconds (and because there aren't other tweets anymore) started to tell me in the console that the bot was retweeting and favs the tweets from... my account ! And because my account was empty at the beginning, this means that it was trying to retweet the tweets I already retweeted ! I hope this was more clear. For each tweets like this, I got some errors on the logs.
Here are some of the logs like this you can see what I mean !
BasketFrElite: ERROR:2021-11-15 10:04:52,954 | HTTP Error 403: Forbidden on 1.1/favorites/create <----
BasketFrElite: INFO:2021-11-15 10:04:52,954 | Sleeping for ten seconds.
BasketFrElite: INFO:2021-11-15 10:05:02,965 | Today tweets count: 0
BasketFrElite: INFO:2021-11-15 10:05:02,965 | Today likes count: 0
BasketFrElite: INFO:2021-11-15 10:05:02,965 | Today retweets count: 0
BasketFrElite: INFO:2021-11-15 10:05:02,965 | Followers count: 0
BasketFrElite: INFO:2021-11-15 10:05:03,913 | Liked a tweet by BasketEliteFr
BasketFrElite: INFO:2021-11-15 10:05:04,218 | Database updated.
BasketFrElite: ERROR:2021-11-15 10:05:04,218 | HTTP Error 403: Forbidden on 1.1/favorites/create <----
BasketFrElite: INFO:2021-11-15 10:05:04,218 | Sleeping for ten seconds.
BasketFrElite: INFO:2021-11-15 10:05:14,232 | Today tweets count: 0
BasketFrElite: INFO:2021-11-15 10:05:14,232 | Today likes count: 0
BasketFrElite: INFO:2021-11-15 10:05:14,232 | Today retweets count: 0
BasketFrElite: INFO:2021-11-15 10:05:14,232 | Followers count: 0
BasketFrElite: INFO:2021-11-15 10:05:16,096 | Liked a tweet by BasketEliteFr
BasketFrElite: INFO:2021-11-15 10:05:17,425 | Database updated.
BasketFrElite: ERROR:2021-11-15 10:05:17,425 | HTTP Error 403: Forbidden on 1.1/favorites/create <----
from twitterbot2.
And I don't think that it is a behavior that was wanted ! But the error is well managed so it's not a real issue 😃
You could just see if the tweets is from myself, then don't do anything os something like that!
from twitterbot2.
Okay, got it. You should also provide the flag '-nu'. It means no user and with this option enabled the bot will not like and retweet your user tweets. See if this works :)
from twitterbot2.
In fact I thought using -nu
was only used to avoid to retweet tweets.
The utility of the -nu
was not clear for me in fact !
from twitterbot2.
Perfect, I think I can close the issue. :)
from twitterbot2.
Related Issues (20)
- JS and CSS served as static files HOT 1
- Update dashboard HOT 1
- Chart width set by a slider HOT 1
- Add NavBar HOT 1
- Increase mobile width HOT 1
- Set correct chart width when refresh
- Chart always centered HOT 1
- Data Visualization errors correct handling HOT 1
- Fill the Wiki HOT 1
- Add uptime and status info HOT 1
- Logger error HOT 4
- Adding more keywords and choose to fav and retweet HOT 8
- Unable to run any search HOT 3
- Add api endpoints HOT 2
- ValueError: Unrecognised argument(s): encoding
- Please contact me HOT 1
- Send a telegram message when the bot dies
- Create API documentation page HOT 1
- [APIv2.0] the statistics remain at zero. not working HOT 5
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 twitterbot2.