Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.56 KB

README.md

File metadata and controls

46 lines (35 loc) · 1.56 KB

NOT WORKING

catfacts-snowden

Installation

This requires tesseract for optical character recognition to automate a captcha.

It also requires tor to be running and having torsocks. It checks for tor, but not much else is written for good error messages.

The stream.py script uses the tweepy library for the twitter API

Debian/Ubuntu

```bash apt-get install tesseract-ocr pip install tweepy ```

CentOS

install epel repo ```bash yum install tesseract-ocr pip install tweepy ```

Other

Try your package manager or the source is here: https://github.com/tesseract-ocr/tesseract

Configuration

```bash git clone https://github.com/IDSninja/catfacts-snowden ``` edit the config.ini: input your twitter application's API credentials.

https://apps.twitter.com/

Near the top of both scripts, there is an unsub variable. You can change it but keep it under 52 characters, and use +'s for spaces in woem.sh. If you want to disable unsubscribing, remove the elif construct at the bottom of on_data.

Usage

The stream API does output full tweets, but only the raw numbers will be saved in numbers.txt. Either run it in screen or a seperate terminal or direct the output to /dev/null

It's recommended to let the stream.py run until at least a few hundred numbers are collected, because woem will keep looping as fast as possible.

python stream.py
bash woem.sh

Only US numbers will be used and commercial numbers like 877 and 800 will be stripped from the numbers file when the script is ran. The scripts are pretty short and easy to read.