retweet-bot icon indicating copy to clipboard operation
retweet-bot copied to clipboard

Load blacklisted users & words from config file

Open rajat404 opened this issue 9 years ago • 2 comments

Changes are made to get the blacklisted users & words from config file. Also noting that the terms: "RT" and u"♺", are needed to be blacklisted regardless, they are separately added to the list wordBlacklist in the retweet.py file.

rajat404 avatar Aug 17 '15 13:08 rajat404

Hi rajat404,

could you use the split function instead of evaluating the config string with ast.literal_eval?

Please put your patch in one logical commit and I'll happily merge it.

Thanks.

Rergards, basti2342

basti2342 avatar Dec 03 '15 23:12 basti2342

I added the following lines after the search query to read the list of blocked users from twitter:

# get list of blocked users
for user in tweepy.Cursor(api.blocks).items():
	`userBlacklist.append(user.screen_name)```

Just don't know how to do the same with the blacklisted words.

schousda avatar Nov 28 '17 18:11 schousda