Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load blacklisted users & words from config file #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Load blacklisted users & words from config file #10

wants to merge 3 commits into from

Conversation

rajat404
Copy link

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
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

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