semvec/pypi-packages huggingface dataset:
capsolver-python3 1.0.1
CapSolver.com library for Python3
License: MIT
Requires Python: >=3

# Capsolver Python3
Capsolver python3 library

## Installation

Use pip to install the library:

```sh
pip3 install --upgrade capsolver-python3
```

Install from source with:

```sh
python setup.py install
```

## Usage


#### ImageToText

```python
from capsolver_python import ImageToTextTask

capsolver = ImageToTextTask("API_KEY")
task_id = capsolver.create_task(image_path="img.png")
result = capsolver.join_task_result(task_id)
print(result.get("text"))
```

#### Recaptcha v2

```python
from capsolver_python import RecaptchaV2Task

capsolver = RecaptchaV2Task("API_KEY")
task_id = capsolver.create_task("website_url", "website_key")
result = capsolver.join_task_result(task_id)
print(result.get("gRecaptchaResponse"))
```

#### Recaptcha v2 enterprise

```python
from capsolver_python import RecaptchaV2EnterpriseTask

capsolver = RecaptchaV2EnterpriseTask("API_KEY")
task_id = capsolver.create_task("website_url", "website_key", {"s": "payload value"}, "api_domain")
result = capsolver.join_task_result(task_id)
print(result.get("gRecaptchaResponse"))
```

#### GeeTest

```python
from capsolver_python import GeeTestTask

capsolver = GeeTestTask("API_KEY")
task_id = capsolver.create_task("website_url", "gt", "challenge")
result= capsolver.join_task_result(task_id)
print(result.get("challenge"))
print(result.get("seccode"))
print(result.get("validate"))
```
freeimagehost 1.2
An unofficial wrapper for the freeimagehost website api.
License: MIT
Requires Python: >=3.8
Keywords: image,upload,uploader,imageuploader

# FreeImageHost

Unofficial wrapper for the freeimagehost website api

# Install
```bash
$ python3 -m pip install freeimagehost
```

## Example
```python
from imagehost import ImageHost

cl = ImageHost('api_key...')

#local image
image = cl.upload(
    'image.png'
)

#url image
image2 = cl.upload(
    'https://example.com/image.png',
    'url'
)

#base64 image
image3 = cl.upload(
    'b64 string...',
    'b64'
)

print(image['image']['url'])
print(image2['image']['url'])
print(image3['image']['url'])
```

## Asyncio Example
```python
import asyncio
from imagehost.aio import ImageHost

async def main():
    cl = ImageHost('api_key....')
    
    #local image
    image = await cl.upload(
        'image.png'
    )
    
    #url image
    image2 = await cl.upload(
        'https://example.com/image.png',
        'url'
    )
    
    #base64 image
    image3 = await cl.upload(
        'b64 string...',
        'b64'
    )
    
    print(image['image']['url'])
    print(image2['image']['url'])
    print(image3['image']['url'])


asyncio.run(main())
```