<commit_before># gh-notifier

[![Join the chat at https://gitter.im/kshitij10496/gh-scrapper](https://badges.gitter.im/kshitij10496/gh-scrapper.svg)](https://gitter.im/kshitij10496/gh-scrapper?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

> A Desktop notifier for all your "social" GitHub notifications.

The project is in pre-alpha stage and is under heavy developement.

### Features
---------------
Currently, it notifies a user when:

- [x] someone follows them
- [x] someone stars/forks/watches their repository

### Contributing
------------------
Please feel free to report any discrepancy on the [Issues Tracker]().
If you have any feature requests, comment on this [thread]().
I will try to implement them.
More so, feel free to open a Pull Request.

#### LICENSE : MIT<commit_msg>Added installation instructions<commit_after># gh-notifier

[![Join the chat at https://gitter.im/kshitij10496/gh-scrapper](https://badges.gitter.im/kshitij10496/gh-scrapper.svg)](https://gitter.im/kshitij10496/gh-scrapper?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

> A Desktop notifier for all your "social" GitHub notifications.

### Why gh-notifier ?

- Because growing your developer network matters.
- Because we all are excited by the response we get on our projects.
- Because we love Terminal.
- Because nobody else does this (not even GitHub itself).
- Because this is cool.
- Because this helped me learn.

### Features
---------------
Currently, it notifies a user when:

- [x] someone follows them
- [x] someone stars/forks/watches their repository

### Installtion Guide
---------------------

#### For Linux and MacOSX users

Note: Python3 is needed to run this application. So, if you haven't already downloaded it, kindly download it from [here](https://www.python.org/downloads/).

- Download the package from PyPI via `pip` (or `pip3`) using :   
  `pip3 install ghnotifier`  
   Use `sudo` if need be.
   
- Run `ghnotifier` command in a terminal to set up your credentials and get your notifications.

#### Adding to `crontab`

In order to make the most out of the app, I would suggest you to add it to your `crontab`. If you aren't comfortable with the process of adding a command to the `crontab`, then continue reading.   

  
  `# Adding the ghnotifier to crontab`   
  `$ crontab -e`  
 
  `# In order to run the command every minute(the setting I use), add the following line to your crontab.`  
  `* * * * * ghnotifier`
  

**Note (For MacOSX users)**: Apart from the above steps, I recommend you to download [`terminal-notifier`](https://github.com/julienXX/terminal-notifier) from @julienXX.

#####  Troubleshooting `crontab`:
I faced a few issues while adding the command to my crontabs on both Ubuntu 16.04 and MacOSX Sierra.
Hence, I thought of sharing a few hacks for helping you:

 For MacOSX:
 - In-place editing with vim: http://stackoverflow.com/q/15395479/4927751
 - Exporting to your favourite Text editor: `EDITOR=your_editor crontab -e`  


 For Ubuntu:
 - Common issues with installing crontab : http://askubuntu.com/q/23009/434885
 - Example script for inspiration : https://github.com/kshitij10496/gh-notifier/blob/master/cronscript.sh
 
 If you face any issue with the installation, feel free to reach out to me.
 
### Contributing
------------------
Please feel free to report any discrepancy/suggestions on the [Issues Tracker]().
If you have any feature requests, comment on this [thread](). I will try to implement them.
More so, feel free to open a Pull Request.

### LICENSE : [MIT](https://github.com/kshitij10496/gh-notifier/blob/master/LICENSE)
{'fraction_non_alphanumeric': 0.12243221035332785, 'fraction_numerical': 0.019994522048753766, 'mean_word_length': 3.724450194049159, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4116400', 'n_tokens_mistral': 1203, 'n_tokens_neox': 1091, 'n_words': 416}