basti2342 / retweet-bot

Retweets tweets mentioning your hashtag/search query. Supports Twitter API v1.1.
Mozilla Public License 2.0
127 stars 96 forks source link

Load blacklisted users & words from config file #10

Open rajat404 opened 9 years ago

rajat404 commented 9 years ago

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.

basti2342 commented 8 years ago

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

schousda commented 6 years ago

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.