Skip to main content

library for solving captchas using https://api.api-ninjas.com/v1

Project description

ninsolver python library for solving captchas


python version 3.5+

to install with pip:

pip install ninsolver

requirements:

aiohttp

code example:

from asyncio import run, gather
import ninsolver

async def async_append(client, image, to_append, num):
	res = await client.solving_image(client.image_to_bytes(image))
	to_append.append(res)
	print(f"{num} - solved")

async def main():
	client = ninsolver.Client("YOUR API KEY")
	results = []
	await gather(*[async_append(client, f"{i}.jpg", results, i) for i in range(1, 7)])
	for x in results:
		print(x.as_str)

run(main())

links:

p.s. visit my github, there are also other codes there

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ninsolver-0.1.tar.gz (2.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page