Python CLI app to detect if a screenshot of a tweet is genuine. Work in Progress.
- tesseract
- tesseract-data-eng
-
Install
tesseract
andtesseract-data-eng
packages.- Ubuntu (and other debian based) :
sudo apt-get install tesseract-ocr tesseract-ocr-eng
- Fedora :
sudo dnf install tessearct
- Arch Linux:
sudo pacman -S tesseract tesseract-data-eng
- Ubuntu (and other debian based) :
-
Run
python setup.py install
to install requirements. Install script is still a work in progress. -
[ ! -f ~/.fakemenot.config ] && cp fakemenot/twitter.config ~/.fakemenot.config
-
Go to https://apps.twitter.com/app/new and put your consumer and API keys in
~/.fakemenot.config
-
Run
fakemenot
after installation. Setup will install it in your path.
- Since it does OCR on the image, detection rate will vary on the quality of the screenshot.
- Only support desktop screenshots now. Universal support coming soon! :)
--image/-i
Path to the screenshot image of tweet. Only works on Desktop screenshots.
--limit/-l
Specify the number of tweets to pull from the detected user. Defaults to 100. Retweets are not pulled and does not affect the limit.
--config/-c
Specify an alternate configuration file containing your twitter identification and authentication material. Defaults to ~/.fakemenot.config
Tweet by @mattdm:
Output:
Blurry image
Tweet by @elahmo:
Output:
Fake image
Tweet by @elahmo:
Output: