Metadata-Version: 2.1
Name: reddit-gen
Version: 0.1.1
Summary: Generate Reddit Accounts Automatically
License: MIT
Author: Mohammad Alyetama
Author-email: malyetama@pm.me
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: 2captcha-python (>=1.1.0)
Requires-Dist: beautifulsoup4 (>=4.10.0)
Requires-Dist: factory-boy (>=3.2.0)
Requires-Dist: loguru (>=0.6.0)
Requires-Dist: pymongo[srv] (>=4.1.1)
Requires-Dist: python-dotenv (>=0.17.1)
Requires-Dist: requests (>=2.26.0)
Requires-Dist: rich (>=10.6.0)
Requires-Dist: selenium (>=3.141.0)
Requires-Dist: tqdm (>=4.56.2)
Description-Content-Type: text/markdown

# Reddit Account Generator


## Requirements
- [Google Chrome](https://www.google.com/chrome/)
- *Optional, but recommended:* [MongoDB](https://www.mongodb.com/) (get a free database [here](https://www.mongodb.com/cloud/atlas/register)) 

## Getting started

### Step 1: Clone this repository
```sh
git clone https://github.com/Alyetama/reddit-account-generator.git
cd reddit_accounts_generator
```

### Step 2: Build the package
```sh
pip install poetry
poetry build
pip install .
```

### Step 3: Edit the content of `.env`
```sh
mv .env.example .env
nano .env  # or any other text editor
```

## Usage

```
usage: reddit-gen [-h] [-d] [-s] [-i] [-j] [-p] [-n CREATE_N_ACCOUNTS]
                  [-e ENV_FILE] [-D] [-U] [--experimental-use-vpn]

options:
  -h, --help            show this help message and exit
  -d, --disable-headless
                        Disable headless mode
  -s, --solve-manually  Solve the captcha manually
  -i, --ip-rotated      The public IP address was changed by the user since
                        the last created account (to bypass the cooldown)
  -j, --use-json        Read from the local JSON database (pass if you're not
                        using MongoDB). A new local database will be created
                        if not found
  -p, --show-local-database-path
                        Prints the path to the local database, if exists
  -n CREATE_N_ACCOUNTS, --create-n-accounts CREATE_N_ACCOUNTS
                        Number of accounts to create (default: 1)
  -e ENV_FILE, --env-file ENV_FILE
                        Path to the .env file. Defaults to .env in the current
                        directory
  -D, --debug           Debug mode
  -U, --update-database
                        Update accounts metadata (MongoDB-only)
  --experimental-use-vpn
```

## Example

```
reddit-gen
───────────────────────────────── Starting... ─────────────────────────────────
2022-06-20 17:22:42.739 | INFO     | reddit_gen.generator:_signup_info:65 - Your account's email address: some_random_username@example.com
2022-06-20 17:22:42.739 | INFO     | reddit_gen.generator:_signup_info:67 - Username: some_random_username
2022-06-20 17:22:45.976 | DEBUG    | reddit_gen.generator:generate:196 - Solving captcha...
2022-06-20 17:24:12.579 | DEBUG    | reddit_gen.generator:generate:200 - Solved!
2022-06-20 17:24:38.841 | DEBUG    | reddit_gen.generator:generate:263 - Checking account info...
2022-06-20 17:24:39.069 | DEBUG    | reddit_gen.generator:generate:266 - Passed!
2022-06-20 17:24:39.069 | INFO     | reddit_gen.generato──r:generate:274 - Account verified!
───────────────────────────────────── Done! ───────────────────────────────────
```

