Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pwnfoo/fakemenot
Application to check authenticity of Twitter screenshots. Written in Python :snake:
https://github.com/pwnfoo/fakemenot
ocr pytesseract tweet twitter
Last synced: about 2 months ago
JSON representation
Application to check authenticity of Twitter screenshots. Written in Python :snake:
- Host: GitHub
- URL: https://github.com/pwnfoo/fakemenot
- Owner: pwnfoo
- License: mit
- Created: 2017-07-06T17:29:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-21T19:21:51.000Z (over 6 years ago)
- Last Synced: 2024-10-31T20:40:50.268Z (3 months ago)
- Topics: ocr, pytesseract, tweet, twitter
- Language: Python
- Homepage:
- Size: 118 KB
- Stars: 29
- Watchers: 2
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fakemenot
Python CLI app to detect if a screenshot of a tweet is genuine. Work in Progress.### Requriements
* tesseract
* tesseract-data-eng### Setting Up
* Install `tesseract` and `tesseract-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`
* 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.### Limitations
* 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! :)
### Arguments* `--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
### Image Samples
Tweet by @mattdm:
![](http://i.imgur.com/5oDeoxv.png)
Output:
![](http://i.imgur.com/05ZeCxL.png)