
## Prerequisites

1. You have signed up for an Euler Stream account.
2. You have created an API key in the Euler Stream dashboard.

## How to Use

The Euler Stream API can be used in conjunction with `tiktok-captcha-solver`. To integrate the two, follow these steps:

First, `pip install tiktok-captcha-solver`. Check out [their repository](https://github.com/gbiz123/tiktok-captcha-solver) to view code examples.

Place the following code below in any file, and call it at the start of your program:

```python
from tiktok_captcha_solver import ApiClient

def monkey_patch_client():
    ORIGINAL_HOST = "www.sadcaptcha.com"
    REPLACEMENT_HOST = "tiktok.eulerstream.com"

    ApiClient._PUZZLE_URL = ApiClient._PUZZLE_URL.replace(ORIGINAL_HOST, REPLACEMENT_HOST)
    ApiClient._ROTATE_URL = ApiClient._ROTATE_URL.replace(ORIGINAL_HOST, REPLACEMENT_HOST)
    ApiClient._SHAPES_URL = ApiClient._SHAPES_URL.replace(ORIGINAL_HOST, REPLACEMENT_HOST)
    ApiClient._ICON_URL = ApiClient._ICON_URL.replace(ORIGINAL_HOST, REPLACEMENT_HOST)

monkey_patch_client()
```

That's it! You can now use the SadCaptcha solver with Euler Stream's API.