<commit_before># Spy Manager bot

Create and manager groups of users from ImageSite getting the latest (12 till now) posted photos from each user.


## Install

`pip install -r requeriments.txt`


## Run

`docker-compose build && docker-compose up`


## Code example without bot:

**MongoDB Server**

To store the data into a separated container:

`docker volume create --name mongodata`

Runing:

`docker run -d -p 27017:27017 --name mongod -v mongodata:/data mongo mongod`

`python example.py`<commit_msg>update readme with env setup<commit_after># Spy Manager bot

Create and manager groups of users from ImageSite getting the latest (12 till now) posted photos from each user.


## Environment file

Create a `.env` file on the project root folder:

`API_TOKEN=MY_TELEGRAM_API`

## Run

`docker-compose build && docker-compose up`

## Code example without bot:

### Install dependencies

`pip install -r requeriments.txt`

### Applictaion

**MongoDB Server**

To store the data into a separated container:

`docker volume create --name mongodata`

Runing:

`docker run -d -p 27017:27017 --name mongod -v mongodata:/data mongo mongod`

`python example.py`
{'fraction_non_alphanumeric': 0.0924006908462867, 'fraction_numerical': 0.02072538860103627, 'mean_word_length': 4.2681818181818185, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3447712', 'n_tokens_mistral': 395, 'n_tokens_neox': 358, 'n_words': 149}