Ignore adult tweets [Solved]!
See original GitHub issueIt works perfectly!
I’d really appreciate it if you could add a function that skips inappropriate tweets, like those include “nudes”, “sex” etc. Because the bot keeps retweeting those kinds of tweets. Thanks a lot for your great work!
Update: I did it myself! it turned out to be pretty easy 😃
-
in
main.py
scroll down to find this linefor tweet in searched_tweets:
and just paste this line below it:if not any(y in tweet.text.lower().split() for y in config.skip_retweet_tags):
make sure to add indentation before and after the above line. -
in
config.py
before theretweet_tags
list add this listskip_retweet_tags = ["nude", "nudes" ,"tits" ,"booty" ,"boobs", "cum"]
you can add any more words you want the bot to ignore.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Age-restricted tweets #419 - JustAnotherArchivist/snscrape
You can view the tweet as long as you're signed into an account (even a suspended one, meaning you can view them with...
Read more >Sensitive media policy - Twitter Help Center
For this reason, you can't include violent, hateful, or adult content within areas that are highly visible on Twitter, including in live video,...
Read more >How to view sensitive content in Twitter on iPhone, iPad, and ...
Disable sensitive content warning for your own Tweets · Open the Twitter app on your iPhone. · Tap your Profile Picture at the...
Read more >How to mute Twitter notifications from people who don't follow ...
Go to the "Settings and privacy" menu · Click “Privacy and safety” · Click “Mute and block,” then click “Muted notifications” · Check...
Read more >6 parental instructions on how to filter content on Twitter and ...
3 proven ways for parents to block adult sites in Windows 10 ... Many parents us this feature for the solution of how...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you a lotfor your help !
Duuuuude, thank you so much ! Do you know how we can also add a: if tweet have less than “x” RT, then don’t retweet ?