Skip to content

Load blacklisted users & words from config file#10

Open
rajat404 wants to merge 3 commits intobasti2342:masterfrom
rajat404:master
Open

Load blacklisted users & words from config file#10
rajat404 wants to merge 3 commits intobasti2342:masterfrom
rajat404:master

Conversation

@rajat404
Copy link
Copy Markdown

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
Copy link
Copy Markdown
Owner

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
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants