Wrote this code as a way to help people remove and clear their twitter accounts so that Governments like china and other countries don't flag them!
It's a simple python code to identify potential tweets that may contain sensitive keywords that governments might flag them and use it against you! I don't mind removing my old tweets to be safe and for me it's about being safe than sorry!
Twitter free API only allows you to retrieve last 3200 tweets and you have to be pro/premium API owner to do so with a slight modification of code!
-
Clone or download the project
git clone https://github.com/i3130002/TwitterSia30Flagger.git
-
install dependencies
pip install twython
-
Rename
Config.exp.py
toConfig.py
-
Put your twitter
APP_KEY
andAPP_SECRET
intoConfig.py
-
Run main.py by
python main.py
-
Type target username in response to
What username?
-
Open
output.html
and go through tweets thus removing unnecessary ones that might be dangerous! -
Re-Do steps 1 to 7 to make sure things are fine now !
-
Jupyter notebook
is not in sync with.py
files -
It has problem displaying found keywords for each tweet
-
Improving sensitive words
-
Reading sensitive words from another file