<commit_before># ShowerThoughts (WIP)
Display a random shower thought from /r/showerthoughts.  Best when paired with cowsay.

*Note: This will be a mess while I remember how to write proper python.*

## Install
Requires Python 3 and [Requests](http://docs.python-requests.org/en/master/) library.

```pip3 install requests```

## Usage
Running without aruments will display a random post from the cached database. 

```python3 shower_thoughts.py```

### Options

```python3 shower_thoughts.py (update|open|config)```

```update```  Update local database of shower thoughts

```open```   Open comments section of last post

```config``` Get or set config (not quite working yet)

##cowsay

`python3 shower_thoughts.py | cowsay`
<commit_msg>- Updated general info to include changing subreddits - Added TODO section - Added docopt to requirements - Updated options to include working config options<commit_after># ShowerThoughts (WIP)
Display a random shower thought from /r/showerthoughts.  Best when paired with cowsay.

Not limited to just /r/showerthoughts.  Use `config subreddit newsub` to change to a new subreddit.

Example: `python3 shower_thoughts.py config subreddit LifeProTips`


*Note: This will be a mess while I remember how to write proper python.*

## TODO

- Change the name
- Add proper login support with voting

## Install
Requires Python 3, [Requests](http://docs.python-requests.org/en/master/) and [docopt](https://github.com/docopt/docopt).

```pip3 install requests docopt```

## Usage
Running without aruments will display a random post from the cached database. 

```python3 shower_thoughts.py```

### Options

```python3 shower_thoughts.py (update|open|config)```

```update```  Update local database of shower thoughts

```open```   Open comments section of last post

```config``` Get or set config `sort|limit|timeframe|subreddit`

##cowsay

`python3 shower_thoughts.py | cowsay`

{'fraction_non_alphanumeric': 0.10675039246467818, 'fraction_numerical': 0.0057561486132914706, 'mean_word_length': 4.847094801223242, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5022658', 'n_tokens_mistral': 596, 'n_tokens_neox': 549, 'n_words': 220}